Add `wperf man` printout solution

Description

Add mechanism (maybe to PrettyTable) to output it’s data in LInux perf format. For example, WindowsPerf emits with standard PrettyTable:

We should emit:

Note: We ignore titles of both columns, and second column text is prefixed with 4 white spaces and wrapped before we print 81 characters.

Please note that we should wrap after 81 (can be parametrized) characters (including prefix white spaces).

Activity

Przemyslaw Wirkus 
June 24, 2024 at 11:10 AM

kush-kothari-arm mentioned this issue in a merge request of linaro / WindowsPerf / WindowsPerf on branch feature-WPERF-844:

Draft: [wperf] : implemented `man` (manual) feature

Przemyslaw Wirkus 
June 19, 2024 at 9:36 AM

Or should we return an error before anything is printed?

Please show error if any value is unknown.

Kush Kothari 
June 19, 2024 at 9:35 AM

If the user inputs: wperf man ld_spec,qwerty , do we wish to show the result for ld_spec, and THEN show an error for qwerty? Or should we return an error before anything is printed?

Done

Details

Assignee

Reporter

Components

Sprint

Fix versions

Priority

Checklist

Sentry

Created May 13, 2024 at 1:09 PM
Updated July 4, 2024 at 8:51 AM
Resolved July 4, 2024 at 8:51 AM