| v8-profiler.h | | v8-profiler.h | |
| | | | |
| skipping to change at line 108 | | skipping to change at line 108 | |
| */ | | */ | |
| class V8_EXPORT CpuProfile { | | class V8_EXPORT CpuProfile { | |
| public: | | public: | |
| /** Returns CPU profile title. */ | | /** Returns CPU profile title. */ | |
| Handle<String> GetTitle() const; | | Handle<String> GetTitle() const; | |
| | | | |
| /** Returns the root node of the top down call tree. */ | | /** Returns the root node of the top down call tree. */ | |
| const CpuProfileNode* GetTopDownRoot() const; | | const CpuProfileNode* GetTopDownRoot() const; | |
| | | | |
| /** | | /** | |
|
| * Returns number of samples recorded. The samples are not recorded unle | | * Returns number of samples recorded. The samples are not recorded unles | |
| ss | | s | |
| * |record_samples| parameter of CpuProfiler::StartCpuProfiling is true. | | * |record_samples| parameter of CpuProfiler::StartCpuProfiling is true. | |
| */ | | */ | |
| int GetSamplesCount() const; | | int GetSamplesCount() const; | |
| | | | |
| /** | | /** | |
|
| * Returns profile node corresponding to the top frame the sample at | | * Returns profile node corresponding to the top frame the sample at | |
| * the given index. | | * the given index. | |
| */ | | */ | |
| const CpuProfileNode* GetSample(int index) const; | | const CpuProfileNode* GetSample(int index) const; | |
| | | | |
| /** | | /** | |
|
| * Returns time when the profile recording was started (in microseconds) | | * Returns the timestamp of the sample. The timestamp is the number of | |
| * since some unspecified starting point. | | * microseconds since some unspecified starting point. | |
| */ | | * The point is equal to the starting point used by GetStartTime. | |
| | | */ | |
| | | int64_t GetSampleTimestamp(int index) const; | |
| | | | |
| | | /** | |
| | | * Returns time when the profile recording was started (in microseconds) | |
| | | * since some unspecified starting point. | |
| | | */ | |
| int64_t GetStartTime() const; | | int64_t GetStartTime() const; | |
| | | | |
| /** | | /** | |
|
| * Returns time when the profile recording was stopped (in microseconds) | | * Returns time when the profile recording was stopped (in microseconds) | |
| * since some unspecified starting point. The point is however equal to | | * since some unspecified starting point. | |
| the | | * The point is equal to the starting point used by GetStartTime. | |
| * starting point used by GetStartTime. | | */ | |
| */ | | | |
| int64_t GetEndTime() const; | | int64_t GetEndTime() const; | |
| | | | |
| /** | | /** | |
| * Deletes the profile and removes it from CpuProfiler's list. | | * Deletes the profile and removes it from CpuProfiler's list. | |
| * All pointers to nodes previously returned become invalid. | | * All pointers to nodes previously returned become invalid. | |
| */ | | */ | |
| void Delete(); | | void Delete(); | |
| }; | | }; | |
| | | | |
| /** | | /** | |
| | | | |
End of changes. 4 change blocks. |
| 15 lines changed or deleted | | 21 lines changed or added | |
|