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

Unified Diff: base/test/scoped_memory_usage.h

Issue 2440393002: [tracing] Implement composable memory usage estimators. (Closed)
Patch Set: Rebase Created 4 years, 1 month 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 | « base/test/BUILD.gn ('k') | base/test/scoped_memory_usage.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/test/scoped_memory_usage.h
diff --git a/base/test/scoped_memory_usage.h b/base/test/scoped_memory_usage.h
new file mode 100644
index 0000000000000000000000000000000000000000..8122ff7caad9bf4755323e28267d80a19d0d341e
--- /dev/null
+++ b/base/test/scoped_memory_usage.h
@@ -0,0 +1,28 @@
+// Copyright 2016 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 BASE_TEST_SCOPED_MEMORY_USAGE_H_
+#define BASE_TEST_SCOPED_MEMORY_USAGE_H_
+
+#include <stddef.h>
+
+#include "base/macros.h"
+
+namespace base {
+namespace test {
+
+class ScopedMemoryUsage {
+ public:
+ ScopedMemoryUsage();
+ ~ScopedMemoryUsage();
+
+ size_t Usage() const;
+
+ static void Initialize();
+};
+
+} // namespace test
+} // namespace base
+
+#endif // BASE_TEST_SCOPED_MEMORY_USAGE_H_
« no previous file with comments | « base/test/BUILD.gn ('k') | base/test/scoped_memory_usage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698