Lines Matching refs:start
86 void open_svg(const char *filename, int cpus, int rows, u64 start, u64 end)
95 first_time = start;
154 void svg_ubox(int Yslot, u64 start, u64 end, double height, const char *type, int fd, int err, int merges)
156 double w = time2pixels(end) - time2pixels(start);
165 time2pixels(start),
173 void svg_lbox(int Yslot, u64 start, u64 end, double height, const char *type, int fd, int err, int merges)
175 double w = time2pixels(end) - time2pixels(start);
184 time2pixels(start),
192 void svg_fbox(int Yslot, u64 start, u64 end, double height, const char *type, int fd, int err, int merges)
194 double w = time2pixels(end) - time2pixels(start);
203 time2pixels(start),
211 void svg_box(int Yslot, u64 start, u64 end, const char *type)
217 time2pixels(start), time2pixels(end)-time2pixels(start), Yslot * SLOT_MULT, SLOT_HEIGHT, type);
221 void svg_blocked(int Yslot, int cpu, u64 start, u64 end, const char *backtrace)
228 time_to_string(end - start));
231 svg_box(Yslot, start, end, "blocked");
235 void svg_running(int Yslot, int cpu, u64 start, u64 end, const char *backtrace)
243 if (svg_highlight && end - start > svg_highlight)
250 cpu, time_to_string(end - start));
254 time2pixels(start), time2pixels(end)-time2pixels(start), Yslot * SLOT_MULT, SLOT_HEIGHT,
257 text_size = (time2pixels(end)-time2pixels(start));
266 time2pixels(start), Yslot * SLOT_MULT + SLOT_HEIGHT - 1, text_size, cpu + 1);
289 void svg_waiting(int Yslot, int cpu, u64 start, u64 end, const char *backtrace)
300 if (end-start > 10 * NSEC_PER_MSEC) /* 10 msec */
303 text = time_to_string(end-start);
305 font_size = 1.0 * (time2pixels(end)-time2pixels(start));
312 fprintf(svgfile, "<g transform=\"translate(%.8f,%.8f)\">\n", time2pixels(start), Yslot * SLOT_MULT);
313 fprintf(svgfile, "<title>#%d waiting %s</title>\n", cpu, time_to_string(end - start));
317 time2pixels(end)-time2pixels(start), SLOT_HEIGHT, style);
383 void svg_process(int cpu, u64 start, u64 end, int pid, const char *name, const char *backtrace)
391 if (svg_highlight && end - start >= svg_highlight)
398 fprintf(svgfile, "<g transform=\"translate(%.8f,%.8f)\">\n", time2pixels(start), cpu2y(cpu));
399 fprintf(svgfile, "<title>%d %s running %s</title>\n", pid, name, time_to_string(end - start));
403 time2pixels(end)-time2pixels(start), SLOT_MULT+SLOT_HEIGHT, type);
404 width = time2pixels(end)-time2pixels(start);
417 void svg_cstate(int cpu, u64 start, u64 end, int type)
434 time2pixels(start), time2pixels(end)-time2pixels(start),
437 width = (time2pixels(end)-time2pixels(start))/2.0;
445 time2pixels(start), cpu2y(cpu)+width, width, type);
474 void svg_pstate(int cpu, u64 start, u64 end, u64 freq)
487 time2pixels(start), time2pixels(end), height, height);
489 time2pixels(start), height+0.9, HzToHuman(freq));
495 void svg_partial_wakeline(u64 start, int row1, char *desc1, int row2, char *desc2, const char *backtrace)
515 time2pixels(start), row1 * SLOT_MULT + SLOT_HEIGHT, time2pixels(start), row1 * SLOT_MULT + SLOT_HEIGHT + SLOT_MULT/32);
518 time2pixels(start), row1 * SLOT_MULT + SLOT_HEIGHT + SLOT_HEIGHT/48, desc2);
522 time2pixels(start), row2 * SLOT_MULT - SLOT_MULT/32, time2pixels(start), row2 * SLOT_MULT);
525 time2pixels(start), row2 * SLOT_MULT - SLOT_MULT/32, desc1);
530 time2pixels(start), row2 * SLOT_MULT + SLOT_HEIGHT, time2pixels(start), row2 * SLOT_MULT + SLOT_HEIGHT + SLOT_MULT/32);
533 time2pixels(start), row2 * SLOT_MULT + SLOT_HEIGHT + SLOT_MULT/48, desc1);
537 time2pixels(start), row1 * SLOT_MULT - SLOT_MULT/32, time2pixels(start), row1 * SLOT_MULT);
540 time2pixels(start), row1 * SLOT_MULT - SLOT_HEIGHT/32, desc2);
548 time2pixels(start), height);
553 void svg_wakeline(u64 start, int row1, int row2, const char *backtrace)
568 time2pixels(start), row1 * SLOT_MULT + SLOT_HEIGHT, time2pixels(start), row2 * SLOT_MULT);
571 time2pixels(start), row2 * SLOT_MULT + SLOT_HEIGHT, time2pixels(start), row1 * SLOT_MULT);
577 time2pixels(start), height);
582 void svg_interrupt(u64 start, int row, const char *backtrace)
595 time2pixels(start), row * SLOT_MULT);
597 time2pixels(start), row * SLOT_MULT + SLOT_HEIGHT);
602 void svg_text(int Yslot, u64 start, const char *text)
608 time2pixels(start), Yslot * SLOT_MULT+SLOT_HEIGHT/2, text);