OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "config.h" | |
6 #include "webkit/extensions/v8/profiler_extension.h" | 5 #include "webkit/extensions/v8/profiler_extension.h" |
7 | 6 |
8 #include "base/profiler.h" | 7 #include "base/profiler.h" |
9 | 8 |
10 namespace extensions_v8 { | 9 namespace extensions_v8 { |
11 | 10 |
12 const char* kProfilerExtensionName = "v8/Profiler"; | 11 const char* kProfilerExtensionName = "v8/Profiler"; |
13 | 12 |
14 class ProfilerWrapper : public v8::Extension { | 13 class ProfilerWrapper : public v8::Extension { |
15 public: | 14 public: |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 } | 91 } |
93 return v8::Undefined(); | 92 return v8::Undefined(); |
94 } | 93 } |
95 }; | 94 }; |
96 | 95 |
97 v8::Extension* ProfilerExtension::Get() { | 96 v8::Extension* ProfilerExtension::Get() { |
98 return new ProfilerWrapper(); | 97 return new ProfilerWrapper(); |
99 } | 98 } |
100 | 99 |
101 } // namespace extensions_v8 | 100 } // namespace extensions_v8 |
OLD | NEW |