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

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

Issue 157503002: A64: Synchronize with r18444. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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.status ('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/free-buffer-extension.h b/test/cctest/profiler-extension.h
similarity index 78%
copy from src/extensions/free-buffer-extension.h
copy to test/cctest/profiler-extension.h
index 22d466f61e02b4e8367dfc9d06f00095aa5efe02..00960b9a97cf28d18b3ccc26077841b5be3a37a9 100644
--- a/src/extensions/free-buffer-extension.h
+++ b/test/cctest/profiler-extension.h
@@ -24,26 +24,20 @@
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+//
+// Tests of profiles generator and utilities.
-#ifndef V8_EXTENSIONS_FREE_BUFFER_EXTENSION_H_
-#define V8_EXTENSIONS_FREE_BUFFER_EXTENSION_H_
-
-#include "v8.h"
-
-namespace v8 {
-namespace internal {
+#include "../include/v8-profiler.h"
-class FreeBufferExtension : public v8::Extension {
+class ProfilerExtension : public v8::Extension {
public:
- explicit FreeBufferExtension(const char* source)
- : v8::Extension("v8/free-buffer", source) {}
+ ProfilerExtension() : v8::Extension("v8/profiler", kSource) { }
virtual v8::Handle<v8::FunctionTemplate> GetNativeFunctionTemplate(
v8::Isolate* isolate,
v8::Handle<v8::String> name);
- static void FreeBuffer(const v8::FunctionCallbackInfo<v8::Value>& args);
- static void Register();
+ static void StartProfiling(const v8::FunctionCallbackInfo<v8::Value>& args);
+ static void StopProfiling(const v8::FunctionCallbackInfo<v8::Value>& args);
+ static const v8::CpuProfile* last_profile;
+ private:
+ static const char* kSource;
};
-
-} } // namespace v8::internal
-
-#endif // V8_EXTENSIONS_FREE_BUFFER_EXTENSION_H_
« no previous file with comments | « test/cctest/cctest.status ('k') | test/cctest/profiler-extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698