]> git.ipfire.org Git - thirdparty/elfutils.git/commit
src/stackprof.cxx: fixups in prior
authorSerhei Makarov <serhei@serhei.io>
Tue, 7 Apr 2026 21:24:18 +0000 (17:24 -0400)
committerSerhei Makarov <serhei@serhei.io>
Tue, 7 Apr 2026 21:24:18 +0000 (17:24 -0400)
commit239fbaeca5b0defd462012ecebe3982de782b502
tree618a4d3eab516c793b369a027f1800f53bd2e70b
parentf01b29993484da08c6a0be4dcc317c667ae06388
src/stackprof.cxx: fixups in prior

- clog/cerr division is ok
- mainfile can also be null
- if we deliberately limit maxframes<=2, the heuristic
  flagging fewer than 2 frames as a 'lost' sample is inapplicable

and

- opt_maxframes relates to the user deliberately choosing to
  override GprofUnwindSampleConsumer preference with --maxframes
  (which I consider useful sometimes for testing):
  if --maxframes is provided, then use the default of 1.
src/stackprof.cxx