#tracing #span #tree #html #profiling #subscriber #hierarchical

tracing-span-tree

Simple tracing subscriber for hierarchical profiling

1 unstable release

0.1.0 Sep 2, 2021
Download history 792/week @ 2021-10-01 995/week @ 2021-10-08 908/week @ 2021-10-15 565/week @ 2021-10-22 619/week @ 2021-10-29 1106/week @ 2021-11-05 2591/week @ 2021-11-12 1719/week @ 2021-11-19 1408/week @ 2021-11-26 1041/week @ 2021-12-03 1787/week @ 2021-12-10 1208/week @ 2021-12-17 86/week @ 2021-12-24 180/week @ 2021-12-31 517/week @ 2022-01-07 855/week @ 2022-01-14

1,786 downloads per month

MIT/Apache

8KB
135 lines

Consumer of tracing data, which prints a hierarchical profile.

Based on https://github.com/davidbarsky/tracing-tree, but does less, while actually printing timings for spans by default.

Usage:

tracing_span_tree::span_tree()
    .aggregate(true)
    .enable();

Example output:

8.37ms           top_level
  1.09ms           middle
    1.06ms           leaf
  1.06ms           middle
  3.12ms           middle
    1.06ms           leaf
  3.06ms           middle

Same data, but with .aggregate(true):

8.39ms           top_level
  8.35ms    4      middle
    2.13ms    2      leaf

lib.rs:

Consumer of tracing data, which prints a hierarchical profile.

Based on https://github.com/davidbarsky/tracing-tree, but does less, while actually printing timings for spans by default.

Usage:

tracing_span_tree::span_tree()
    .aggregate(true)
    .enable();

Example output:

8.37ms           top_level
  1.09ms           middle
    1.06ms           leaf
  1.06ms           middle
  3.12ms           middle
    1.06ms           leaf
  3.06ms           middle

Same data, but with .aggregate(true):

8.39ms           top_level
 8.35ms    4      middle
   2.13ms    2      leaf

Dependencies

~2MB
~34K SLoC

1a