Author: zoltan
Date: 2005-04-13 15:36:38 -0400 (Wed, 13 Apr 2005)
New Revision: 42959

Modified:
   trunk/mono/mono/metadata/ChangeLog
   trunk/mono/mono/metadata/profiler.c
Log:
2005-04-13  Zoltan Varga  <[EMAIL PROTECTED]>

        * profiler.c (mono_profiler_install_simple): Add a 'jit' option to
        the built-in profiler to measure just JIT compilation times.


Modified: trunk/mono/mono/metadata/ChangeLog
===================================================================
--- trunk/mono/mono/metadata/ChangeLog  2005-04-13 19:35:22 UTC (rev 42958)
+++ trunk/mono/mono/metadata/ChangeLog  2005-04-13 19:36:38 UTC (rev 42959)
@@ -1,3 +1,8 @@
+2005-04-13  Zoltan Varga  <[EMAIL PROTECTED]>
+
+       * profiler.c (mono_profiler_install_simple): Add a 'jit' option to
+       the built-in profiler to measure just JIT compilation times.
+
 2005-04-13 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
 
        * threadpool.c: the epollfd might be closed by another thread at

Modified: trunk/mono/mono/metadata/profiler.c
===================================================================
--- trunk/mono/mono/metadata/profiler.c 2005-04-13 19:35:22 UTC (rev 42958)
+++ trunk/mono/mono/metadata/profiler.c 2005-04-13 19:36:38 UTC (rev 42959)
@@ -1262,19 +1262,19 @@
 {
        MonoProfiler *prof;
        gchar **args, **ptr;
-       MonoProfileFlags flags = MONO_PROFILE_JIT_COMPILATION;
+       MonoProfileFlags flags = 0;
 
        MONO_TIMER_STARTUP;
 
        if (!desc)
-               desc = "alloc,time";
+               desc = "alloc,time,jit";
 
        if (desc) {
                /* Parse options */
                if (strstr (desc, ":"))
                        desc = strstr (desc, ":") + 1;
                else
-                       desc = "alloc,time";
+                       desc = "alloc,time,jit";
                args = g_strsplit (desc, ",", -1);
 
                for (ptr = args; ptr && *ptr; ptr++) {
@@ -1286,6 +1286,8 @@
                                flags |= MONO_PROFILE_ALLOCATIONS;
                        else if (!strcmp (arg, "stat"))
                                flags |= MONO_PROFILE_STATISTICAL | 
MONO_PROFILE_APPDOMAIN_EVENTS;
+                       else if (!strcmp (arg, "jit"))
+                               flags |= MONO_PROFILE_JIT_COMPILATION;
                        else {
                                fprintf (stderr, "profiler : Unknown argument 
'%s'.\n", arg);
                                return;

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to