2 releases

0.1.1 Mar 22, 2022
0.1.0 Sep 2, 2021

#1033 in Data structures

Download history 382/week @ 2022-10-06 565/week @ 2022-10-13 477/week @ 2022-10-20 533/week @ 2022-10-27 382/week @ 2022-11-03 428/week @ 2022-11-10 380/week @ 2022-11-17 385/week @ 2022-11-24 446/week @ 2022-12-01 344/week @ 2022-12-08 247/week @ 2022-12-15 87/week @ 2022-12-22 79/week @ 2022-12-29 266/week @ 2023-01-05 411/week @ 2023-01-12 396/week @ 2023-01-19

1,155 downloads per month
Used in nodejs-resolver

MIT/Apache

8KB
134 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

~1.5MB
~23K SLoC