tracy icon indicating copy to clipboard operation
tracy copied to clipboard

csvexport : Any way to export P75 or P90 ?

Open ruifig opened this issue 1 month ago • 3 comments

Hi,

We are using csv-export and then pass that to our CI analysis tool to look for regressions in our SDK. According to the manual, the exported mean_ns is what we see as MTPC in Tracy's UI, and due to the nature of our SDK, mean_ns has too much noise.

Is there a way to export say P90 ?

ruifig avatar Nov 19 '25 16:11 ruifig

Hi, I’d like to work on this issue and add support in csvexport for exporting percentiles like P75/P90. Please let me know if there are any preferences or constraints.

Nihhaar0002 avatar Nov 24 '25 14:11 Nihhaar0002

I can't think of any constrains at the moment. Adding P75 and P90 should be enough for my use case. Maybe exporting those as p75_ns and p90_ns ?

ruifig avatar Nov 24 '25 14:11 ruifig

Implemented support for P75/P90 via PR #1205. Please let me know if any improvements are needed!

Nihhaar0002 avatar Nov 24 '25 14:11 Nihhaar0002

After trying out your change, I've reached the conclusion that p<N} is not the right data I need for my automated tests. :( It's actually "Truncated mean". With that in mind, I've created my own PR (https://github.com/wolfpld/tracy/pull/1209).

Nevertheless, your PR was handy since I wasn't familiar with csvexport's source code.

ruifig avatar Nov 26 '25 16:11 ruifig