aboutsummaryrefslogtreecommitdiffstats
path: root/trace-plot-cpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'trace-plot-cpu.c')
-rw-r--r--trace-plot-cpu.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/trace-plot-cpu.c b/trace-plot-cpu.c
index 5dea225..c7a37f5 100644
--- a/trace-plot-cpu.c
+++ b/trace-plot-cpu.c
@@ -30,22 +30,6 @@ struct cpu_plot_info {
30 struct record *last_record; 30 struct record *last_record;
31}; 31};
32 32
33static gint hash_pid(gint val)
34{
35 /* idle always gets black */
36 if (!val)
37 return 0;
38
39 return trace_hash(val);
40}
41
42static void convert_nano(unsigned long long time, unsigned long *sec,
43 unsigned long *usec)
44{
45 *sec = time / 1000000000ULL;
46 *usec = (time / 1000) % 1000000;
47}
48
49static struct record *get_record_from_time(struct graph_info *ginfo, int cpu, 33static struct record *get_record_from_time(struct graph_info *ginfo, int cpu,
50 unsigned long long time) 34 unsigned long long time)
51{ 35{