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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
142 */ | 142 */ |
143 int GetSamplesCount() const; | 143 int GetSamplesCount() const; |
144 | 144 |
145 /** | 145 /** |
146 * Returns profile node corresponding to the top frame the sample at | 146 * Returns profile node corresponding to the top frame the sample at |
147 * the given index. | 147 * the given index. |
148 */ | 148 */ |
149 const CpuProfileNode* GetSample(int index) const; | 149 const CpuProfileNode* GetSample(int index) const; |
150 | 150 |
151 /** | 151 /** |
152 * Returns time when the profile recording started (in milliseconds | |
153 * since the Epoch ). | |
alph
2013/08/02 16:43:49
nit: space after "Epoch"?
yurys
2013/08/02 16:46:02
Done.
| |
154 */ | |
155 double GetStartTime() const; | |
156 | |
157 /** | |
158 * Returns time when the profile recording was stopped (in milliseconds | |
159 * since the Epoch ). | |
160 */ | |
161 double GetEndTime() const; | |
162 | |
163 /** | |
152 * Deletes the profile and removes it from CpuProfiler's list. | 164 * Deletes the profile and removes it from CpuProfiler's list. |
153 * All pointers to nodes previously returned become invalid. | 165 * All pointers to nodes previously returned become invalid. |
154 * Profiles with the same uid but obtained using different | 166 * Profiles with the same uid but obtained using different |
155 * security token are not deleted, but become inaccessible | 167 * security token are not deleted, but become inaccessible |
156 * using FindProfile method. It is embedder's responsibility | 168 * using FindProfile method. It is embedder's responsibility |
157 * to call Delete on these profiles. | 169 * to call Delete on these profiles. |
158 */ | 170 */ |
159 void Delete(); | 171 void Delete(); |
160 }; | 172 }; |
161 | 173 |
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
584 }; | 596 }; |
585 | 597 |
586 | 598 |
587 } // namespace v8 | 599 } // namespace v8 |
588 | 600 |
589 | 601 |
590 #undef V8EXPORT | 602 #undef V8EXPORT |
591 | 603 |
592 | 604 |
593 #endif // V8_V8_PROFILER_H_ | 605 #endif // V8_V8_PROFILER_H_ |
OLD | NEW |