google / pprof

pprof is a tool for visualization and analysis of profiling data
Apache License 2.0
8.02k stars 607 forks source link

tui: use RFC3339-alike format with second precision for "Time" #903

Closed aktau closed 1 month ago

aktau commented 1 month ago

The current time format (Jan 2, 2006 at 3:04pm (MST)) has a few issues:

Hence, I propose replacing it with an RFC3339-alike format, with spaces between elements for better readability.

codecov-commenter commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 66.95%. Comparing base (0ed6a68) to head (6be65a6). Report is 46 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #903 +/- ## ========================================== + Coverage 66.86% 66.95% +0.09% ========================================== Files 44 44 Lines 9824 9857 +33 ========================================== + Hits 6569 6600 +31 - Misses 2794 2817 +23 + Partials 461 440 -21 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

aalexand commented 1 month ago

@aktau It's unfortunate that no test had to be updated. Should we look into adding a test that would verify the change? My worry is that by just looking at the code I can't tell if we used a format string that will work as expected. If adding an automated test is too much hassle then could you confirm that you tested the change manually / locally?

aktau commented 1 month ago

OK, I added a test. PTAL.