Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(563)

Side by Side Diff: include/v8-profiler.h

Issue 22189002: Revert "Return start/end profiling time in microseconds instead of milliseconds" (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 microseconds 152 * Returns time when the profile recording started (in milliseconds
153 * since the Epoch). 153 * since the Epoch).
154 */ 154 */
155 int64_t GetStartTime() const; 155 double GetStartTime() const;
156 156
157 /** 157 /**
158 * Returns time when the profile recording was stopped (in microseconds 158 * Returns time when the profile recording was stopped (in milliseconds
159 * since the Epoch). 159 * since the Epoch).
160 */ 160 */
161 int64_t GetEndTime() const; 161 double GetEndTime() const;
162 162
163 /** 163 /**
164 * Deletes the profile and removes it from CpuProfiler's list. 164 * Deletes the profile and removes it from CpuProfiler's list.
165 * All pointers to nodes previously returned become invalid. 165 * All pointers to nodes previously returned become invalid.
166 * Profiles with the same uid but obtained using different 166 * Profiles with the same uid but obtained using different
167 * security token are not deleted, but become inaccessible 167 * security token are not deleted, but become inaccessible
168 * using FindProfile method. It is embedder's responsibility 168 * using FindProfile method. It is embedder's responsibility
169 * to call Delete on these profiles. 169 * to call Delete on these profiles.
170 */ 170 */
171 void Delete(); 171 void Delete();
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
596 }; 596 };
597 597
598 598
599 } // namespace v8 599 } // namespace v8
600 600
601 601
602 #undef V8EXPORT 602 #undef V8EXPORT
603 603
604 604
605 #endif // V8_V8_PROFILER_H_ 605 #endif // V8_V8_PROFILER_H_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698