Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(334)

Side by Side Diff: src/debug/debug-coverage.h

Issue 2689493002: [debugger] implement per-function code coverage. (Closed)
Patch Set: address comments Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « BUILD.gn ('k') | src/debug/debug-coverage.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2017 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef V8_DEBUG_DEBUG_COVERAGE_H_
6 #define V8_DEBUG_DEBUG_COVERAGE_H_
7
8 #include <vector>
9
10 #include "src/allocation.h"
11 #include "src/base/macros.h"
12
13 namespace v8 {
14 namespace internal {
15
16 // Forward declaration.
17 class Isolate;
18
19 class Coverage : public AllStatic {
20 public:
21 struct RangeEntry {
22 int end_position;
23 uint32_t count;
24 };
25
26 struct ScriptData {
27 ScriptData(int s, std::vector<RangeEntry> e)
28 : script_id(s), entries(std::move(e)) {}
29 int script_id;
30 std::vector<RangeEntry> entries;
31 };
32
33 static std::vector<ScriptData> Collect(Isolate* isolate);
34 };
35
36 } // namespace internal
37 } // namespace v8
38
39 #endif // V8_DEBUG_DEBUG_COVERAGE_H_
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | src/debug/debug-coverage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698