| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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_PROFILE_GENERATOR_H_ | 5 #ifndef V8_PROFILE_GENERATOR_H_ |
| 6 #define V8_PROFILE_GENERATOR_H_ | 6 #define V8_PROFILE_GENERATOR_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include "include/v8-profiler.h" | 9 #include "include/v8-profiler.h" |
| 10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 List<base::TimeTicks> timestamps_; | 259 List<base::TimeTicks> timestamps_; |
| 260 ProfileTree top_down_; | 260 ProfileTree top_down_; |
| 261 | 261 |
| 262 DISALLOW_COPY_AND_ASSIGN(CpuProfile); | 262 DISALLOW_COPY_AND_ASSIGN(CpuProfile); |
| 263 }; | 263 }; |
| 264 | 264 |
| 265 | 265 |
| 266 class CodeMap { | 266 class CodeMap { |
| 267 public: | 267 public: |
| 268 CodeMap() {} | 268 CodeMap() {} |
| 269 ~CodeMap(); |
| 269 void AddCode(Address addr, CodeEntry* entry, unsigned size); | 270 void AddCode(Address addr, CodeEntry* entry, unsigned size); |
| 270 void MoveCode(Address from, Address to); | 271 void MoveCode(Address from, Address to); |
| 271 CodeEntry* FindEntry(Address addr, Address* start = NULL); | 272 CodeEntry* FindEntry(Address addr, Address* start = NULL); |
| 272 int GetSharedId(Address addr); | 273 int GetSharedId(Address addr); |
| 273 | 274 |
| 274 void Print(); | 275 void Print(); |
| 275 | 276 |
| 276 private: | 277 private: |
| 277 struct CodeEntryInfo { | 278 struct CodeEntryInfo { |
| 278 CodeEntryInfo(CodeEntry* an_entry, unsigned a_size) | 279 CodeEntryInfo(CodeEntry* an_entry, unsigned a_size) |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 CodeEntry* gc_entry_; | 382 CodeEntry* gc_entry_; |
| 382 CodeEntry* unresolved_entry_; | 383 CodeEntry* unresolved_entry_; |
| 383 | 384 |
| 384 DISALLOW_COPY_AND_ASSIGN(ProfileGenerator); | 385 DISALLOW_COPY_AND_ASSIGN(ProfileGenerator); |
| 385 }; | 386 }; |
| 386 | 387 |
| 387 | 388 |
| 388 } } // namespace v8::internal | 389 } } // namespace v8::internal |
| 389 | 390 |
| 390 #endif // V8_PROFILE_GENERATOR_H_ | 391 #endif // V8_PROFILE_GENERATOR_H_ |
| OLD | NEW |