tracing-span-tree

Crates.iotracing-span-tree
lib.rstracing-span-tree
version0.1.1
sourcesrc
created_at2021-09-02 17:57:27.700189
updated_at2022-03-22 12:51:02.30772
descriptionSimple tracing subscriber for hierarchical profiling
homepage
repositoryhttps://github.com/matklad/tracing-span-tree
max_upload_size
id446113
size19,243
owners (github:badrobotics:owners)

documentation

README

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
Commit count: 4

cargo fmt