| 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_
|
| +
|
|
|