[gjs] gjs: Remove profiler



commit 4c9fcdd52b2aec2db365793926f044b2ac40a37c
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Wed Jan 15 09:29:44 2014 -0500

    gjs: Remove profiler
    
    There's a newer, better profiler upstream now we can integrate.

 Makefile.am      |    2 -
 gjs/context.cpp  |   10 --
 gjs/profiler.cpp |  475 ------------------------------------------------------
 gjs/profiler.h   |   42 -----
 4 files changed, 0 insertions(+), 529 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 3a806fb..5059966 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -55,7 +55,6 @@ nobase_gjs_module_include_HEADERS =   \
 
 noinst_HEADERS +=              \
        gjs/jsapi-private.h     \
-       gjs/profiler.h          \
        gi/proxyutils.h         \
        util/crash.h            \
        util/hash-x32.h         \
@@ -115,7 +114,6 @@ libgjs_la_SOURCES =         \
        gjs/jsapi-util-string.cpp       \
        gjs/mem.cpp             \
        gjs/native.cpp          \
-       gjs/profiler.cpp                \
        gjs/runtime.cpp         \
        gjs/stack.cpp           \
        gjs/type-module.cpp     \
diff --git a/gjs/context.cpp b/gjs/context.cpp
index abaa4b1..5dc91cd 100644
--- a/gjs/context.cpp
+++ b/gjs/context.cpp
@@ -28,7 +28,6 @@
 #include "context.h"
 #include "importer.h"
 #include "jsapi-util.h"
-#include "profiler.h"
 #include "native.h"
 #include "byteArray.h"
 #include "compat.h"
@@ -63,8 +62,6 @@ struct _GjsContext {
     JSContext *context;
     JSObject *global;
 
-    GjsProfiler *profiler;
-
     char *program_name;
 
     char **search_path;
@@ -316,11 +313,6 @@ gjs_context_dispose(GObject *object)
 
     js_context = GJS_CONTEXT(object);
 
-    if (js_context->profiler) {
-        gjs_profiler_free(js_context->profiler);
-        js_context->profiler = NULL;
-    }
-
     if (js_context->global != NULL) {
         js_context->global = NULL;
     }
@@ -599,8 +591,6 @@ gjs_context_constructed(GObject *object)
                                   js_context->global))
         g_error("Failed to point 'imports' property at root importer");
 
-    js_context->profiler = gjs_profiler_new(js_context->runtime);
-
     JS_EndRequest(js_context->context);
 
     g_mutex_lock (&contexts_lock);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]