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

Unified Diff: cc/debug/frame_timing_cost_tracker.h

Issue 799863004: not for commit/review (thread cost tracker) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « cc/cc.gyp ('k') | cc/debug/frame_timing_cost_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/debug/frame_timing_cost_tracker.h
diff --git a/cc/debug/frame_timing_cost_tracker.h b/cc/debug/frame_timing_cost_tracker.h
new file mode 100644
index 0000000000000000000000000000000000000000..d8d4cb237f785f1a7ed95ef7bd71986be689f24d
--- /dev/null
+++ b/cc/debug/frame_timing_cost_tracker.h
@@ -0,0 +1,31 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CC_DEBUG_FRAME_TIMING_COST_TRACKER_H_
+#define CC_DEBUG_FRAME_TIMING_COST_TRACKER_H_
+
+#include "cc/debug/worker_thread_cost_tracker.h"
+
+namespace cc {
+
+class FrameTimingCostTracker {
+ public:
+ FrameTimingCostTracker();
+ ~FrameTimingCostTracker();
+
+ void Start(int source_frame_number);
+ void Stop();
+
+ base::TimeDelta GetTotalCost();
+ void ResetCost();
+
+ WorkerThreadCostTracker* GetWorkerThreadCostTracker();
+
+ private:
+ WorkerThreadCostTracker worker_thread_cost_tracker_;
+};
+
+} // namespace cc
+
+#endif // CC_DEBUG_FRAME_TIMING_COST_TRACKER_H_
« no previous file with comments | « cc/cc.gyp ('k') | cc/debug/frame_timing_cost_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698