Lines Matching refs:start

85 void open_svg(const char *filename, int cpus, int rows, u64 start, u64 end)
94 first_time = start;
153 void svg_ubox(int Yslot, u64 start, u64 end, double height, const char *type, int fd, int err, int merges)
155 double w = time2pixels(end) - time2pixels(start);
164 time2pixels(start),
172 void svg_lbox(int Yslot, u64 start, u64 end, double height, const char *type, int fd, int err, int merges)
174 double w = time2pixels(end) - time2pixels(start);
183 time2pixels(start),
191 void svg_fbox(int Yslot, u64 start, u64 end, double height, const char *type, int fd, int err, int merges)
193 double w = time2pixels(end) - time2pixels(start);
202 time2pixels(start),
210 void svg_box(int Yslot, u64 start, u64 end, const char *type)
216 time2pixels(start), time2pixels(end)-time2pixels(start), Yslot * SLOT_MULT, SLOT_HEIGHT, type);
220 void svg_blocked(int Yslot, int cpu, u64 start, u64 end, const char *backtrace)
227 time_to_string(end - start));
230 svg_box(Yslot, start, end, "blocked");
234 void svg_running(int Yslot, int cpu, u64 start, u64 end, const char *backtrace)
242 if (svg_highlight && end - start > svg_highlight)
249 cpu, time_to_string(end - start));
253 time2pixels(start), time2pixels(end)-time2pixels(start), Yslot * SLOT_MULT, SLOT_HEIGHT,
256 text_size = (time2pixels(end)-time2pixels(start));
265 time2pixels(start), Yslot * SLOT_MULT + SLOT_HEIGHT - 1, text_size, cpu + 1);
288 void svg_waiting(int Yslot, int cpu, u64 start, u64 end, const char *backtrace)
299 if (end-start > 10 * NSEC_PER_MSEC) /* 10 msec */
302 text = time_to_string(end-start);
304 font_size = 1.0 * (time2pixels(end)-time2pixels(start));
311 fprintf(svgfile, "<g transform=\"translate(%.8f,%.8f)\">\n", time2pixels(start), Yslot * SLOT_MULT);
312 fprintf(svgfile, "<title>#%d waiting %s</title>\n", cpu, time_to_string(end - start));
316 time2pixels(end)-time2pixels(start), SLOT_HEIGHT, style);
382 void svg_process(int cpu, u64 start, u64 end, int pid, const char *name, const char *backtrace)
390 if (svg_highlight && end - start >= svg_highlight)
397 fprintf(svgfile, "<g transform=\"translate(%.8f,%.8f)\">\n", time2pixels(start), cpu2y(cpu));
398 fprintf(svgfile, "<title>%d %s running %s</title>\n", pid, name, time_to_string(end - start));
402 time2pixels(end)-time2pixels(start), SLOT_MULT+SLOT_HEIGHT, type);
403 width = time2pixels(end)-time2pixels(start);
416 void svg_cstate(int cpu, u64 start, u64 end, int type)
433 time2pixels(start), time2pixels(end)-time2pixels(start),
436 width = (time2pixels(end)-time2pixels(start))/2.0;
444 time2pixels(start), cpu2y(cpu)+width, width, type);
473 void svg_pstate(int cpu, u64 start, u64 end, u64 freq)
486 time2pixels(start), time2pixels(end), height, height);
488 time2pixels(start), height+0.9, HzToHuman(freq));
494 void svg_partial_wakeline(u64 start, int row1, char *desc1, int row2, char *desc2, const char *backtrace)
514 time2pixels(start), row1 * SLOT_MULT + SLOT_HEIGHT, time2pixels(start), row1 * SLOT_MULT + SLOT_HEIGHT + SLOT_MULT/32);
517 time2pixels(start), row1 * SLOT_MULT + SLOT_HEIGHT + SLOT_HEIGHT/48, desc2);
521 time2pixels(start), row2 * SLOT_MULT - SLOT_MULT/32, time2pixels(start), row2 * SLOT_MULT);
524 time2pixels(start), row2 * SLOT_MULT - SLOT_MULT/32, desc1);
529 time2pixels(start), row2 * SLOT_MULT + SLOT_HEIGHT, time2pixels(start), row2 * SLOT_MULT + SLOT_HEIGHT + SLOT_MULT/32);
532 time2pixels(start), row2 * SLOT_MULT + SLOT_HEIGHT + SLOT_MULT/48, desc1);
536 time2pixels(start), row1 * SLOT_MULT - SLOT_MULT/32, time2pixels(start), row1 * SLOT_MULT);
539 time2pixels(start), row1 * SLOT_MULT - SLOT_HEIGHT/32, desc2);
547 time2pixels(start), height);
552 void svg_wakeline(u64 start, int row1, int row2, const char *backtrace)
567 time2pixels(start), row1 * SLOT_MULT + SLOT_HEIGHT, time2pixels(start), row2 * SLOT_MULT);
570 time2pixels(start), row2 * SLOT_MULT + SLOT_HEIGHT, time2pixels(start), row1 * SLOT_MULT);
576 time2pixels(start), height);
581 void svg_interrupt(u64 start, int row, const char *backtrace)
594 time2pixels(start), row * SLOT_MULT);
596 time2pixels(start), row * SLOT_MULT + SLOT_HEIGHT);
601 void svg_text(int Yslot, u64 start, const char *text)
607 time2pixels(start), Yslot * SLOT_MULT+SLOT_HEIGHT/2, text);