[gjs] profiler: make gjs_profiler_reset public
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs] profiler: make gjs_profiler_reset public
- Date: Thu, 16 Sep 2010 21:25:39 +0000 (UTC)
commit 4f85aa7d3a5d0b0f4f79ef6edc72b521e2fffd4e
Author: Colin Walters <walters verbum org>
Date: Thu Sep 16 17:19:35 2010 -0400
profiler: make gjs_profiler_reset public
Seems useful, and having it static-but-unused causes a warning.
gjs/profiler.c | 2 +-
gjs/profiler.h | 1 +
2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gjs/profiler.c b/gjs/profiler.c
index e362524..dbcf9f1 100644
--- a/gjs/profiler.c
+++ b/gjs/profiler.c
@@ -387,7 +387,7 @@ by_file_reset_one(gpointer key,
p->total_time = 0;
}
-static void
+void
gjs_profiler_reset(GjsProfiler *self)
{
g_hash_table_foreach(self->by_file,
diff --git a/gjs/profiler.h b/gjs/profiler.h
index 5f1df11..b4a2c92 100644
--- a/gjs/profiler.h
+++ b/gjs/profiler.h
@@ -33,6 +33,7 @@ typedef struct _GjsProfiler GjsProfiler;
GjsProfiler *gjs_profiler_new (JSRuntime *runtime);
void gjs_profiler_free(GjsProfiler *self);
+void gjs_profiler_reset(GjsProfiler *self);
void gjs_profiler_dump (GjsProfiler *self);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]