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

Unified Diff: Source/core/inspector/InspectorTimelineAgent.h

Issue 212893002: Use monotonicallyIncreasingTime for Timeline timestamps (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: scale to milliseconds Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/inspector/InspectorTimelineAgent.h
diff --git a/Source/core/inspector/InspectorTimelineAgent.h b/Source/core/inspector/InspectorTimelineAgent.h
index 39909d33ef8e20b07124e96e8be36e385dc82ece..41888700eb8d5a13871a0fa374fa0344d36207a3 100644
--- a/Source/core/inspector/InspectorTimelineAgent.h
+++ b/Source/core/inspector/InspectorTimelineAgent.h
@@ -88,19 +88,6 @@ class XMLHttpRequest;
typedef String ErrorString;
-class TimelineTimeConverter {
-public:
- TimelineTimeConverter()
- : m_startOffset(0)
- {
- }
- double fromMonotonicallyIncreasingTime(double time) const { return (time - m_startOffset) * 1000.0; }
- void reset();
-
-private:
- double m_startOffset;
-};
-
class InspectorTimelineAgent FINAL
: public TraceEventTarget<InspectorTimelineAgent>
, public InspectorBaseAgent<InspectorTimelineAgent>
@@ -295,6 +282,7 @@ private:
void releaseNodeIds();
double timestamp();
+ double toTimelineTimestamp(double);
FrameHost* frameHost() const;
@@ -313,7 +301,6 @@ private:
int m_id;
unsigned long long m_layerTreeId;
- TimelineTimeConverter m_timeConverter;
int m_maxCallStackDepth;
Vector<TimelineRecordEntry> m_recordStack;
« no previous file with comments | « no previous file | Source/core/inspector/InspectorTimelineAgent.cpp » ('j') | Source/core/inspector/InspectorTimelineAgent.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698