Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

What do the three numbers in Perfetto duration mean?

I’m just starting to look into Perfetto via viztracer for Python, and I noticed the "Current Selection" for a slice gives this kind of output:

perfetto current selection

In particular, it says:

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Duration 53ms 926us 800ns

What do the three numbers mean? I’ve tried searching online, but I’ve found no explanation …

The 53 ms does correspond to the width of the slice/event in the visualization, but what are the 926us and 800ns for?

>Solution :

The entire expression 53ms 926us 800ns is the duration: 53 milliseconds, plus 926 microseconds (commonly abbreviated as us or μs), plus 800 nanoseconds – for a total of 53.9268 milliseconds.

Based on the values of the timestamp and duration, it looks like precision is only to hundred-nanosecond intervals here.

The 53 ms does correspond to the width of the slice/event in the visualization

The whole number represents the width of the slice/event but the truncated value of 53 ms is close enough to look like it corresponds.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading