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

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

Issue 243033002: Switch CPU profile start/stop markers to monotonic time. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 8 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
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