| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 INLINE(int shared_id() const) { return shared_id_; } | 107 INLINE(int shared_id() const) { return shared_id_; } |
| 108 INLINE(void set_shared_id(int shared_id)) { shared_id_ = shared_id; } | 108 INLINE(void set_shared_id(int shared_id)) { shared_id_ = shared_id; } |
| 109 INLINE(int security_token_id() const) { return security_token_id_; } | 109 INLINE(int security_token_id() const) { return security_token_id_; } |
| 110 | 110 |
| 111 INLINE(static bool is_js_function_tag(Logger::LogEventsAndTags tag)); | 111 INLINE(static bool is_js_function_tag(Logger::LogEventsAndTags tag)); |
| 112 | 112 |
| 113 void CopyData(const CodeEntry& source); | 113 void CopyData(const CodeEntry& source); |
| 114 uint32_t GetCallUid() const; | 114 uint32_t GetCallUid() const; |
| 115 bool IsSameAs(CodeEntry* entry) const; | 115 bool IsSameAs(CodeEntry* entry) const; |
| 116 | 116 |
| 117 static const char* kEmptyNamePrefix; | 117 static const char* const kEmptyNamePrefix; |
| 118 | 118 |
| 119 private: | 119 private: |
| 120 Logger::LogEventsAndTags tag_; | 120 Logger::LogEventsAndTags tag_; |
| 121 const char* name_prefix_; | 121 const char* name_prefix_; |
| 122 const char* name_; | 122 const char* name_; |
| 123 const char* resource_name_; | 123 const char* resource_name_; |
| 124 int line_number_; | 124 int line_number_; |
| 125 int shared_id_; | 125 int shared_id_; |
| 126 int security_token_id_; | 126 int security_token_id_; |
| 127 | 127 |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 415 | 415 |
| 416 void RecordTickSample(const TickSample& sample); | 416 void RecordTickSample(const TickSample& sample); |
| 417 | 417 |
| 418 INLINE(CodeMap* code_map()) { return &code_map_; } | 418 INLINE(CodeMap* code_map()) { return &code_map_; } |
| 419 | 419 |
| 420 INLINE(void Tick()) { sample_rate_calc_.Tick(); } | 420 INLINE(void Tick()) { sample_rate_calc_.Tick(); } |
| 421 INLINE(double actual_sampling_rate()) { | 421 INLINE(double actual_sampling_rate()) { |
| 422 return sample_rate_calc_.ticks_per_ms(); | 422 return sample_rate_calc_.ticks_per_ms(); |
| 423 } | 423 } |
| 424 | 424 |
| 425 static const char* kAnonymousFunctionName; | 425 static const char* const kAnonymousFunctionName; |
| 426 static const char* kProgramEntryName; | 426 static const char* const kProgramEntryName; |
| 427 static const char* kGarbageCollectorEntryName; | 427 static const char* const kGarbageCollectorEntryName; |
| 428 | 428 |
| 429 private: | 429 private: |
| 430 INLINE(CodeEntry* EntryForVMState(StateTag tag)); | 430 INLINE(CodeEntry* EntryForVMState(StateTag tag)); |
| 431 | 431 |
| 432 CpuProfilesCollection* profiles_; | 432 CpuProfilesCollection* profiles_; |
| 433 CodeMap code_map_; | 433 CodeMap code_map_; |
| 434 CodeEntry* program_entry_; | 434 CodeEntry* program_entry_; |
| 435 CodeEntry* gc_entry_; | 435 CodeEntry* gc_entry_; |
| 436 SampleRateCalculator sample_rate_calc_; | 436 SampleRateCalculator sample_rate_calc_; |
| 437 | 437 |
| (...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1199 }; | 1199 }; |
| 1200 | 1200 |
| 1201 | 1201 |
| 1202 String* GetConstructorNameForHeapProfile(JSObject* object); | 1202 String* GetConstructorNameForHeapProfile(JSObject* object); |
| 1203 | 1203 |
| 1204 } } // namespace v8::internal | 1204 } } // namespace v8::internal |
| 1205 | 1205 |
| 1206 #endif // ENABLE_LOGGING_AND_PROFILING | 1206 #endif // ENABLE_LOGGING_AND_PROFILING |
| 1207 | 1207 |
| 1208 #endif // V8_PROFILE_GENERATOR_H_ | 1208 #endif // V8_PROFILE_GENERATOR_H_ |
| OLD | NEW |