OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_BASIC_BLOCK_PROFILER_H_ | 5 #ifndef V8_BASIC_BLOCK_PROFILER_H_ |
6 #define V8_BASIC_BLOCK_PROFILER_H_ | 6 #define V8_BASIC_BLOCK_PROFILER_H_ |
7 | 7 |
8 #include <iosfwd> | 8 #include <iosfwd> |
9 #include <list> | 9 #include <list> |
10 #include <string> | 10 #include <string> |
| 11 #include <vector> |
11 | 12 |
12 #include "src/v8.h" | 13 #include "src/base/macros.h" |
13 | 14 |
14 namespace v8 { | 15 namespace v8 { |
15 namespace internal { | 16 namespace internal { |
16 | 17 |
17 class BasicBlockProfiler { | 18 class BasicBlockProfiler { |
18 public: | 19 public: |
19 class Data { | 20 class Data { |
20 public: | 21 public: |
21 size_t n_blocks() const { return n_blocks_; } | 22 size_t n_blocks() const { return n_blocks_; } |
22 const uint32_t* counts() const { return &counts_[0]; } | 23 const uint32_t* counts() const { return &counts_[0]; } |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 DISALLOW_COPY_AND_ASSIGN(BasicBlockProfiler); | 66 DISALLOW_COPY_AND_ASSIGN(BasicBlockProfiler); |
66 }; | 67 }; |
67 | 68 |
68 std::ostream& operator<<(std::ostream& os, const BasicBlockProfiler& s); | 69 std::ostream& operator<<(std::ostream& os, const BasicBlockProfiler& s); |
69 std::ostream& operator<<(std::ostream& os, const BasicBlockProfiler::Data& s); | 70 std::ostream& operator<<(std::ostream& os, const BasicBlockProfiler::Data& s); |
70 | 71 |
71 } // namespace internal | 72 } // namespace internal |
72 } // namespace v8 | 73 } // namespace v8 |
73 | 74 |
74 #endif // V8_BASIC_BLOCK_PROFILER_H_ | 75 #endif // V8_BASIC_BLOCK_PROFILER_H_ |
OLD | NEW |