projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
change find_field
[lttv.git]
/
ltt
/
branches
/
poly
/
lttv
/
lttv
/
stats.c
diff --git
a/ltt/branches/poly/lttv/lttv/stats.c
b/ltt/branches/poly/lttv/lttv/stats.c
index bd9c1e6cab27d735bb8ef7e3806ec77ae21857ec..6416e3001b3e350cf60a2f48152917c6160227a2 100644
(file)
--- a/
ltt/branches/poly/lttv/lttv/stats.c
+++ b/
ltt/branches/poly/lttv/lttv/stats.c
@@
-47,9
+47,7
@@
GQuark
LTTV_STATS_USE_COUNT,
LTTV_STATS,
LTTV_STATS_TRACEFILES,
LTTV_STATS_USE_COUNT,
LTTV_STATS,
LTTV_STATS_TRACEFILES,
- LTTV_STATS_SUMMED;
-
-static GQuark
+ LTTV_STATS_SUMMED,
LTTV_STATS_BEFORE_HOOKS,
LTTV_STATS_AFTER_HOOKS;
LTTV_STATS_BEFORE_HOOKS,
LTTV_STATS_AFTER_HOOKS;
@@
-89,7
+87,7
@@
static void lttv_stats_init(LttvTracesetStats *self)
LTTV_STATS_USE_COUNT,
LTTV_UINT, &v);
LTTV_STATS_USE_COUNT,
LTTV_UINT, &v);
-
*(v.v_uint
)++;
+
(*(v.v_uint)
)++;
if(*(v.v_uint) == 1) {
g_assert(lttv_attribute_get_number(self->stats) == 0);
}
if(*(v.v_uint) == 1) {
g_assert(lttv_attribute_get_number(self->stats) == 0);
}
@@
-106,7
+104,7
@@
static void lttv_stats_init(LttvTracesetStats *self)
lttv_attribute_find(tcs->parent.parent.t_a, LTTV_STATS_USE_COUNT,
LTTV_UINT, &v);
lttv_attribute_find(tcs->parent.parent.t_a, LTTV_STATS_USE_COUNT,
LTTV_UINT, &v);
-
*(v.v_uint
)++;
+
(*(v.v_uint)
)++;
if(*(v.v_uint) == 1) {
g_assert(lttv_attribute_get_number(tcs->stats) == 0);
}
if(*(v.v_uint) == 1) {
g_assert(lttv_attribute_get_number(tcs->stats) == 0);
}
@@
-151,7
+149,7
@@
static void lttv_stats_fini(LttvTracesetStats *self)
lttv_attribute_find(self->parent.parent.ts_a, LTTV_STATS_USE_COUNT,
LTTV_UINT, &v);
lttv_attribute_find(self->parent.parent.ts_a, LTTV_STATS_USE_COUNT,
LTTV_UINT, &v);
-
*(v.v_uint
)--;
+
(*(v.v_uint)
)--;
if(*(v.v_uint) == 0) {
lttv_attribute_remove_by_name(self->parent.parent.ts_a, LTTV_STATS);
if(*(v.v_uint) == 0) {
lttv_attribute_remove_by_name(self->parent.parent.ts_a, LTTV_STATS);
@@
-166,7
+164,7
@@
static void lttv_stats_fini(LttvTracesetStats *self)
lttv_attribute_find(tcs->parent.parent.t_a, LTTV_STATS_USE_COUNT,
LTTV_UINT, &v);
lttv_attribute_find(tcs->parent.parent.t_a, LTTV_STATS_USE_COUNT,
LTTV_UINT, &v);
-
*(v.v_uint
)--;
+
(*(v.v_uint)
)--;
if(*(v.v_uint) == 0) {
lttv_attribute_remove_by_name(tcs->parent.parent.t_a,LTTV_STATS);
if(*(v.v_uint) == 0) {
lttv_attribute_remove_by_name(tcs->parent.parent.t_a,LTTV_STATS);
This page took
0.022709 seconds
and
4
git commands to generate.