OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |