https://sourceware.org/bugzilla/show_bug.cgi?id=30283
Bug ID: 30283 Summary: [display text] The metrics command should honor the order of the visibility specifications Product: binutils Version: 2.40 Status: NEW Severity: normal Priority: P2 Component: gprofng Assignee: vladimir.mezentsev at oracle dot com Reporter: ruud.vanderpas at oracle dot com Target Milestone: --- The metrics command is used to specify the metrics to be shown. The visibility part is used to select whether this should be the absolute number, and/or the percentage, etc. I would expect the order in the visibility specifications to be honored. For example, ".%" shows the percentage in the second column, but "%." should show the percentage first. As the example below demonstrates, this order is currently ignored. This should be changed. $ gprofng display text -limit 5 -metrics e.%totalcpu -functions exp.er Print limit set to 5 Current metrics: e.%totalcpu:name Current Sort Metric: Exclusive Total CPU Time ( e.%totalcpu ) Functions sorted by metric: Exclusive Total CPU Time Excl. Total Name CPU sec. % 2.422 100.00 <Total> 2.302 95.04 mxv_core 0.070 2.89 init_data 0.020 0.83 erand48_r 0.010 0.41 __drand48_iterate $ gprofng display text -limit 5 -metrics e%.totalcpu -functions exp.er Print limit set to 5 Current metrics: e.%totalcpu:name Current Sort Metric: Exclusive Total CPU Time ( e.%totalcpu ) Functions sorted by metric: Exclusive Total CPU Time Excl. Total Name CPU sec. % 2.422 100.00 <Total> 2.302 95.04 mxv_core 0.070 2.89 init_data 0.020 0.83 erand48_r 0.010 0.41 __drand48_iterate $ -- You are receiving this mail because: You are on the CC list for the bug.