| 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 INLINE(const char* resource_name() const) { return resource_name_; } | 101 INLINE(const char* resource_name() const) { return resource_name_; } |
| 102 INLINE(int line_number() const) { return line_number_; } | 102 INLINE(int line_number() const) { return line_number_; } |
| 103 INLINE(int security_token_id() const) { return security_token_id_; } | 103 INLINE(int security_token_id() const) { return security_token_id_; } |
| 104 | 104 |
| 105 INLINE(static bool is_js_function_tag(Logger::LogEventsAndTags tag)); | 105 INLINE(static bool is_js_function_tag(Logger::LogEventsAndTags tag)); |
| 106 | 106 |
| 107 void CopyData(const CodeEntry& source); | 107 void CopyData(const CodeEntry& source); |
| 108 uint32_t GetCallUid() const; | 108 uint32_t GetCallUid() const; |
| 109 bool IsSameAs(CodeEntry* entry) const; | 109 bool IsSameAs(CodeEntry* entry) const; |
| 110 | 110 |
| 111 static const char* kEmptyNamePrefix; | 111 static const char* const kEmptyNamePrefix; |
| 112 | 112 |
| 113 private: | 113 private: |
| 114 Logger::LogEventsAndTags tag_; | 114 Logger::LogEventsAndTags tag_; |
| 115 const char* name_prefix_; | 115 const char* name_prefix_; |
| 116 const char* name_; | 116 const char* name_; |
| 117 const char* resource_name_; | 117 const char* resource_name_; |
| 118 int line_number_; | 118 int line_number_; |
| 119 int security_token_id_; | 119 int security_token_id_; |
| 120 | 120 |
| 121 DISALLOW_COPY_AND_ASSIGN(CodeEntry); | 121 DISALLOW_COPY_AND_ASSIGN(CodeEntry); |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 | 404 |
| 405 void RecordTickSample(const TickSample& sample); | 405 void RecordTickSample(const TickSample& sample); |
| 406 | 406 |
| 407 INLINE(CodeMap* code_map()) { return &code_map_; } | 407 INLINE(CodeMap* code_map()) { return &code_map_; } |
| 408 | 408 |
| 409 INLINE(void Tick()) { sample_rate_calc_.Tick(); } | 409 INLINE(void Tick()) { sample_rate_calc_.Tick(); } |
| 410 INLINE(double actual_sampling_rate()) { | 410 INLINE(double actual_sampling_rate()) { |
| 411 return sample_rate_calc_.ticks_per_ms(); | 411 return sample_rate_calc_.ticks_per_ms(); |
| 412 } | 412 } |
| 413 | 413 |
| 414 static const char* kAnonymousFunctionName; | 414 static const char* const kAnonymousFunctionName; |
| 415 static const char* kProgramEntryName; | 415 static const char* const kProgramEntryName; |
| 416 static const char* kGarbageCollectorEntryName; | 416 static const char* const kGarbageCollectorEntryName; |
| 417 | 417 |
| 418 private: | 418 private: |
| 419 INLINE(CodeEntry* EntryForVMState(StateTag tag)); | 419 INLINE(CodeEntry* EntryForVMState(StateTag tag)); |
| 420 | 420 |
| 421 CpuProfilesCollection* profiles_; | 421 CpuProfilesCollection* profiles_; |
| 422 CodeMap code_map_; | 422 CodeMap code_map_; |
| 423 CodeEntry* program_entry_; | 423 CodeEntry* program_entry_; |
| 424 CodeEntry* gc_entry_; | 424 CodeEntry* gc_entry_; |
| 425 SampleRateCalculator sample_rate_calc_; | 425 SampleRateCalculator sample_rate_calc_; |
| 426 | 426 |
| (...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1025 friend class HeapSnapshotJSONSerializerIterator; | 1025 friend class HeapSnapshotJSONSerializerIterator; |
| 1026 | 1026 |
| 1027 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer); | 1027 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer); |
| 1028 }; | 1028 }; |
| 1029 | 1029 |
| 1030 } } // namespace v8::internal | 1030 } } // namespace v8::internal |
| 1031 | 1031 |
| 1032 #endif // ENABLE_LOGGING_AND_PROFILING | 1032 #endif // ENABLE_LOGGING_AND_PROFILING |
| 1033 | 1033 |
| 1034 #endif // V8_PROFILE_GENERATOR_H_ | 1034 #endif // V8_PROFILE_GENERATOR_H_ |
| OLD | NEW |