| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 | 215 |
| 216 // Add pc -> ... -> main() call path to the profile. | 216 // Add pc -> ... -> main() call path to the profile. |
| 217 void AddPath(const Vector<CodeEntry*>& path); | 217 void AddPath(const Vector<CodeEntry*>& path); |
| 218 void CalculateTotalTicks(); | 218 void CalculateTotalTicks(); |
| 219 void SetActualSamplingRate(double actual_sampling_rate); | 219 void SetActualSamplingRate(double actual_sampling_rate); |
| 220 CpuProfile* FilteredClone(int security_token_id); | 220 CpuProfile* FilteredClone(int security_token_id); |
| 221 | 221 |
| 222 INLINE(const char* title() const) { return title_; } | 222 INLINE(const char* title() const) { return title_; } |
| 223 INLINE(unsigned uid() const) { return uid_; } | 223 INLINE(unsigned uid() const) { return uid_; } |
| 224 INLINE(const ProfileTree* top_down() const) { return &top_down_; } | 224 INLINE(const ProfileTree* top_down() const) { return &top_down_; } |
| 225 INLINE(const ProfileTree* bottom_up() const) { return &bottom_up_; } | |
| 226 | 225 |
| 227 void UpdateTicksScale(); | 226 void UpdateTicksScale(); |
| 228 | 227 |
| 229 void ShortPrint(); | 228 void ShortPrint(); |
| 230 void Print(); | 229 void Print(); |
| 231 | 230 |
| 232 private: | 231 private: |
| 233 const char* title_; | 232 const char* title_; |
| 234 unsigned uid_; | 233 unsigned uid_; |
| 235 ProfileTree top_down_; | 234 ProfileTree top_down_; |
| 236 ProfileTree bottom_up_; | |
| 237 | 235 |
| 238 DISALLOW_COPY_AND_ASSIGN(CpuProfile); | 236 DISALLOW_COPY_AND_ASSIGN(CpuProfile); |
| 239 }; | 237 }; |
| 240 | 238 |
| 241 | 239 |
| 242 class CodeMap { | 240 class CodeMap { |
| 243 public: | 241 public: |
| 244 CodeMap() : next_shared_id_(1) { } | 242 CodeMap() : next_shared_id_(1) { } |
| 245 void AddCode(Address addr, CodeEntry* entry, unsigned size); | 243 void AddCode(Address addr, CodeEntry* entry, unsigned size); |
| 246 void MoveCode(Address from, Address to); | 244 void MoveCode(Address from, Address to); |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 443 CodeEntry* gc_entry_; | 441 CodeEntry* gc_entry_; |
| 444 SampleRateCalculator sample_rate_calc_; | 442 SampleRateCalculator sample_rate_calc_; |
| 445 | 443 |
| 446 DISALLOW_COPY_AND_ASSIGN(ProfileGenerator); | 444 DISALLOW_COPY_AND_ASSIGN(ProfileGenerator); |
| 447 }; | 445 }; |
| 448 | 446 |
| 449 | 447 |
| 450 } } // namespace v8::internal | 448 } } // namespace v8::internal |
| 451 | 449 |
| 452 #endif // V8_PROFILE_GENERATOR_H_ | 450 #endif // V8_PROFILE_GENERATOR_H_ |
| OLD | NEW |