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

Side by Side Diff: include/v8-profiler.h

Issue 2396733002: [profiler] Tracing-based CPU profiler. (Closed)
Patch Set: Addressing comments + moving traced-value back to src/tracing Created 4 years, 2 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 | « no previous file | src/profiler/cpu-profiler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_V8_PROFILER_H_ 5 #ifndef V8_V8_PROFILER_H_
6 #define V8_V8_PROFILER_H_ 6 #define V8_V8_PROFILER_H_
7 7
8 #include <vector> 8 #include <vector>
9 #include "v8.h" // NOLINT(build/include) 9 #include "v8.h" // NOLINT(build/include)
10 10
(...skipping 30 matching lines...) Expand all
41 } // namespace v8 41 } // namespace v8
42 42
43 #ifdef V8_OS_WIN 43 #ifdef V8_OS_WIN
44 template class V8_EXPORT std::vector<v8::CpuProfileDeoptInfo>; 44 template class V8_EXPORT std::vector<v8::CpuProfileDeoptInfo>;
45 #endif 45 #endif
46 46
47 namespace v8 { 47 namespace v8 {
48 48
49 /** 49 /**
50 * TracingCpuProfiler monitors tracing being enabled/disabled 50 * TracingCpuProfiler monitors tracing being enabled/disabled
51 * and emits CpuProfile trace events once v8.cpu_profile2 tracing category 51 * and emits CpuProfile trace events once v8.cpu_profiler tracing category
52 * is enabled. It has no overhead unless the category is enabled. 52 * is enabled. It has no overhead unless the category is enabled.
53 */ 53 */
54 class V8_EXPORT TracingCpuProfiler { 54 class V8_EXPORT TracingCpuProfiler {
55 public: 55 public:
56 static std::unique_ptr<TracingCpuProfiler> Create(Isolate*); 56 static std::unique_ptr<TracingCpuProfiler> Create(Isolate*);
57 virtual ~TracingCpuProfiler() = default; 57 virtual ~TracingCpuProfiler() = default;
58 58
59 protected: 59 protected:
60 TracingCpuProfiler() = default; 60 TracingCpuProfiler() = default;
61 }; 61 };
(...skipping 826 matching lines...) Expand 10 before | Expand all | Expand 10 after
888 uint32_t index; // Index of the time interval that was changed. 888 uint32_t index; // Index of the time interval that was changed.
889 uint32_t count; // New value of count field for the interval with this index. 889 uint32_t count; // New value of count field for the interval with this index.
890 uint32_t size; // New value of size field for the interval with this index. 890 uint32_t size; // New value of size field for the interval with this index.
891 }; 891 };
892 892
893 893
894 } // namespace v8 894 } // namespace v8
895 895
896 896
897 #endif // V8_V8_PROFILER_H_ 897 #endif // V8_V8_PROFILER_H_
OLDNEW
« no previous file with comments | « no previous file | src/profiler/cpu-profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698