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

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

Issue 22634010: Merged r16039, r16067 into trunk branch. (Closed) Base URL: https://v8.googlecode.com/svn/trunk
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
153 * since the Epoch).
154 */
155 int64_t GetStartTime() const;
156
157 /**
158 * Returns time when the profile recording was stopped (in microseconds
159 * since the Epoch).
160 */
161 int64_t 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
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_
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