[Bug gprofng/31459] need a way to suppress the stderr message

2024-03-11 Thread ruud.vanderpas at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31459

--- Comment #3 from Ruud van der Pas  ---
Great to hear this works for you, James!

It is interesting that the outfile option on the collect command was never
documented, but is clearly useful.

The unfortunate thing is that the outfile option as supported on
gp-display-text has a different behaviour:

$ gprofng display text -outfile LOG -limit 5 -functions graph.2.thr.er
Print limit set to 5

$ cat LOG
Functions sorted by metric: Exclusive Total CPU Time

Excl. TotalIncl. Total Name
CPUCPU
  sec.  %sec.  %
15.905 100.00  15.905 100.00   
 6.464  40.64   6.467  40.66   verify_bfs_tree._omp_fn.0
 4.700  29.55   4.716  29.65   make_bfs_tree._omp_fn.0
 0.716   4.50   0.716   4.50   mrg_get_uint_orig
 0.695   4.37   0.695   4.37   __aarch64_ldadd8_sync

$

As you can see, outfile stores the output from the command, but not the
diagnostics.

This is why it might be cleaner and clearer to introduce a new option on the
gp-collect-app command. Something like -gp-output. It would be the same as
--outfile, but possibly avoid confusion.

Your feedback is much appreciated!

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gprofng/31459] need a way to suppress the stderr message

2024-03-11 Thread carlsonj at workingcode dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31459

--- Comment #2 from James Carlson  ---
Excellent! I'll use that instead. In that case, please consider adding this
option to the documentation.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gprofng/31459] need a way to suppress the stderr message

2024-03-09 Thread vladimir.mezentsev at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31459

Vladimir Mezentsev  changed:

   What|Removed |Added

   Last reconfirmed||2024-03-10
 Status|UNCONFIRMED |ASSIGNED
   Assignee|vladimir.mezentsev at oracle dot c |ruud.vanderpas at 
oracle dot com
   |om  |
 Ever confirmed|0   |1
   Priority|P2  |P3

--- Comment #1 from Vladimir Mezentsev  
---
The --outfile option is not documented.


% gprofng collect app --outfile x.log ./a.out 13
N=13
Total for 13: 73712

% cat x.log 
Sat Mar  9 17:25:33 2024
Creating experiment directory test.1.er (Process ID: 2635464) ...

-- 
You are receiving this mail because:
You are on the CC list for the bug.