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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
111 */ | 111 */ |
112 int GetSamplesCount() const; | 112 int GetSamplesCount() const; |
113 | 113 |
114 /** | 114 /** |
115 * Returns profile node corresponding to the top frame the sample at | 115 * Returns profile node corresponding to the top frame the sample at |
116 * the given index. | 116 * the given index. |
117 */ | 117 */ |
118 const CpuProfileNode* GetSample(int index) const; | 118 const CpuProfileNode* GetSample(int index) const; |
119 | 119 |
120 /** | 120 /** |
121 * Returns time when the profile recording started (in microseconds | 121 * Returns time when the profile recording was started (in microseconds). |
yurys
2014/04/18 12:43:30
Please add a note about the time base.
alph
2014/04/18 13:19:58
Done.
| |
122 * since the Epoch). | |
123 */ | 122 */ |
124 int64_t GetStartTime() const; | 123 int64_t GetStartTime() const; |
125 | 124 |
126 /** | 125 /** |
127 * Returns time when the profile recording was stopped (in microseconds | 126 * Returns time when the profile recording was stopped (in microseconds). |
128 * since the Epoch). | |
129 */ | 127 */ |
130 int64_t GetEndTime() const; | 128 int64_t GetEndTime() const; |
131 | 129 |
132 /** | 130 /** |
133 * Deletes the profile and removes it from CpuProfiler's list. | 131 * Deletes the profile and removes it from CpuProfiler's list. |
134 * All pointers to nodes previously returned become invalid. | 132 * All pointers to nodes previously returned become invalid. |
135 */ | 133 */ |
136 void Delete(); | 134 void Delete(); |
137 }; | 135 }; |
138 | 136 |
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
616 uint32_t index; // Index of the time interval that was changed. | 614 uint32_t index; // Index of the time interval that was changed. |
617 uint32_t count; // New value of count field for the interval with this index. | 615 uint32_t count; // New value of count field for the interval with this index. |
618 uint32_t size; // New value of size field for the interval with this index. | 616 uint32_t size; // New value of size field for the interval with this index. |
619 }; | 617 }; |
620 | 618 |
621 | 619 |
622 } // namespace v8 | 620 } // namespace v8 |
623 | 621 |
624 | 622 |
625 #endif // V8_V8_PROFILER_H_ | 623 #endif // V8_V8_PROFILER_H_ |
OLD | NEW |