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

Unified Diff: test/cctest/profiler-extension.h

Issue 16932003: CPUProfiler: unflake flaky CPUProfiler tests. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: HandleScope was moved one line down Created 7 years, 6 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
« no previous file with comments | « test/cctest/cctest.gyp ('k') | test/cctest/profiler-extension.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/profiler-extension.h
diff --git a/src/extensions/statistics-extension.h b/test/cctest/profiler-extension.h
similarity index 78%
copy from src/extensions/statistics-extension.h
copy to test/cctest/profiler-extension.h
index bfd9c4134e298a097c8c202b894a904cdd56f32b..b61f53fab94987d496a3b0e5e193e4870678c3e6 100644
--- a/src/extensions/statistics-extension.h
+++ b/test/cctest/profiler-extension.h
@@ -1,4 +1,4 @@
-// Copyright 2010 the V8 project authors. All rights reserved.
+// Copyright 2013 the V8 project authors. All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
@@ -25,25 +25,27 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#ifndef V8_EXTENSIONS_STATISTICS_EXTENSION_H_
-#define V8_EXTENSIONS_STATISTICS_EXTENSION_H_
+#ifndef PROFILER_EXTENSION_H_
+#define PROFILER_EXTENSION_H_
#include "v8.h"
namespace v8 {
namespace internal {
-class StatisticsExtension : public v8::Extension {
+class ProfilerExtension : public v8::Extension {
public:
- StatisticsExtension() : v8::Extension("v8/statistics", kSource) {}
+ ProfilerExtension() : v8::Extension(kName, kSource) { }
virtual v8::Handle<v8::FunctionTemplate> GetNativeFunction(
v8::Handle<v8::String> name);
- static void GetCounters(const v8::FunctionCallbackInfo<v8::Value>& args);
- static void Register();
+ static const char* kName;
private:
- static const char* const kSource;
+ static v8::Handle<v8::Value> StartProfiling(const v8::Arguments& args);
+ static v8::Handle<v8::Value> StopProfiling(const v8::Arguments& args);
+ static const char* kSource;
};
} } // namespace v8::internal
-#endif // V8_EXTENSIONS_STATISTICS_EXTENSION_H_
+#endif // PROFILER_EXTENSION_H_
+
« no previous file with comments | « test/cctest/cctest.gyp ('k') | test/cctest/profiler-extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698