projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
git-svn-id: http://ltt.polymtl.ca/svn@309 04897980-b3bd-0310-b5e0-8ef037075253
[lttv.git]
/
ltt
/
branches
/
poly
/
lttv
/
stats.c
diff --git
a/ltt/branches/poly/lttv/stats.c
b/ltt/branches/poly/lttv/stats.c
index d0bb4cdf6ea2a855144d530942d3faf194972968..eaa2041ceb5485cf969581f14161584d5578d971 100644
(file)
--- a/
ltt/branches/poly/lttv/stats.c
+++ b/
ltt/branches/poly/lttv/stats.c
@@
-327,9
+327,9
@@
static void mode_change(LttvTracefileStats *tfcs)
lttv_attribute_find(tfcs->current_events_tree, LTTV_STATS_CPU_TIME,
LTTV_TIME, &cpu_time);
lttv_attribute_find(tfcs->current_events_tree, LTTV_STATS_CPU_TIME,
LTTV_TIME, &cpu_time);
-
TimeSub(delta,
tfcs->parent.parent.timestamp,
+
delta = ltt_time_sub(
tfcs->parent.parent.timestamp,
tfcs->parent.process->state->change);
tfcs->parent.process->state->change);
-
TimeAdd(*(cpu_time.v_time),
*(cpu_time.v_time), delta);
+
*(cpu_time.v_time) = ltt_time_add(
*(cpu_time.v_time), delta);
}
}
@@
-341,15
+341,15
@@
static void mode_end(LttvTracefileStats *tfcs)
lttv_attribute_find(tfcs->current_events_tree, LTTV_STATS_ELAPSED_TIME,
LTTV_TIME, &elapsed_time);
lttv_attribute_find(tfcs->current_events_tree, LTTV_STATS_ELAPSED_TIME,
LTTV_TIME, &elapsed_time);
-
TimeSub(delta,
tfcs->parent.parent.timestamp,
+
delta = ltt_time_sub(
tfcs->parent.parent.timestamp,
tfcs->parent.process->state->entry);
tfcs->parent.process->state->entry);
-
TimeAdd(*(elapsed_time.v_time),
*(elapsed_time.v_time), delta);
+
*(elapsed_time.v_time) = ltt_time_add(
*(elapsed_time.v_time), delta);
lttv_attribute_find(tfcs->current_events_tree, LTTV_STATS_CPU_TIME,
LTTV_TIME, &cpu_time);
lttv_attribute_find(tfcs->current_events_tree, LTTV_STATS_CPU_TIME,
LTTV_TIME, &cpu_time);
-
TimeSub(delta,
tfcs->parent.parent.timestamp,
+
delta = ltt_time_sub(
tfcs->parent.parent.timestamp,
tfcs->parent.process->state->change);
tfcs->parent.process->state->change);
-
TimeAdd(*(cpu_time.v_time),
*(cpu_time.v_time), delta);
+
*(cpu_time.v_time) = ltt_time_add(
*(cpu_time.v_time), delta);
}
}
@@
-794,6
+794,7
@@
lttv_stats_remove_event_hooks(LttvTracesetStats *self)
hook.id), hook.h, &g_array_index(after_hooks, LttvTraceHook, k));
}
}
hook.id), hook.h, &g_array_index(after_hooks, LttvTraceHook, k));
}
}
+ g_critical("lttv_stats_remove_event_hooks()");
g_array_free(before_hooks, TRUE);
g_array_free(after_hooks, TRUE);
}
g_array_free(before_hooks, TRUE);
g_array_free(after_hooks, TRUE);
}
This page took
0.022883 seconds
and
4
git commands to generate.