[PATCH 0/3] gprofng: Add gmon reading capabilities

claudiu.zissulescu-ianculescu@oracle.com claudiu.zissulescu-ianculescu@oracle.com
Thu Oct 23 12:06:25 GMT 2025


From: Claudiu Zissulescu <claudiu.zissulescu-ianculescu@oracle.com>

Hello,

This patch series introduces the capability to convert a gmon.out file
into a gprofng experiment. It is composed out of three patches. The
first one adds the necessary logic to gprofng project to handle gmon
files and convert them to an experiment. The next one, handles the
documentation, while the last one adds a test for the introduced new
feature.

Ok to commit?
Claudiu


Claudiu Zissulescu (3):
  gprofng: New tool for converting gmon.out file to experiments
  gprofng: Add documentation on converting gmon files.
  gprofng: Add gprofng gmon conversion command test

 gprof/gprof.texi                              |   4 +
 gprofng/doc/Makefile.am                       |   4 +-
 gprofng/doc/Makefile.in                       |   4 +-
 gprofng/doc/gprofng-display-gmon.texi         | 213 +++++
 gprofng/doc/gprofng.texi                      |   4 +
 gprofng/doc/gprofng_ug.texi                   |   9 +
 gprofng/src/Makefile.am                       |  12 +-
 gprofng/src/Makefile.in                       |  38 +-
 gprofng/src/basic_blocks.h                    |  30 +
 gprofng/src/call_graph.h                      |  33 +
 gprofng/src/cg_arcs.h                         |  51 ++
 gprofng/src/collctrl.h                        |   2 +-
 gprofng/src/corefile.h                        |  41 +
 gprofng/src/gmon.h                            | 157 ++++
 gprofng/src/gmon_basic_blocks.cc              | 139 ++++
 gprofng/src/gmon_call_graph.cc                |  91 +++
 gprofng/src/gmon_cg_arcs.cc                   | 129 +++
 gprofng/src/gmon_corefile.cc                  | 492 +++++++++++
 gprofng/src/gmon_hist.cc                      | 490 +++++++++++
 gprofng/src/gmon_io.cc                        | 257 ++++++
 gprofng/src/gmon_io.h                         |  46 ++
 gprofng/src/gmon_out.h                        |  46 ++
 gprofng/src/gmon_symtab.cc                    | 259 ++++++
 gprofng/src/gp-gmon.cc                        | 772 ++++++++++++++++++
 gprofng/src/gp-gmon.h                         |  22 +
 gprofng/src/gprofng.cc                        |   2 +
 gprofng/src/hist.h                            |  38 +
 gprofng/src/source.h                          |  35 +
 gprofng/src/symtab.h                          | 122 +++
 gprofng/testsuite/gprofng.display/gp-gmon.exp |  70 ++
 30 files changed, 3604 insertions(+), 8 deletions(-)
 create mode 100644 gprofng/doc/gprofng-display-gmon.texi
 create mode 100644 gprofng/src/basic_blocks.h
 create mode 100644 gprofng/src/call_graph.h
 create mode 100644 gprofng/src/cg_arcs.h
 create mode 100644 gprofng/src/corefile.h
 create mode 100644 gprofng/src/gmon.h
 create mode 100644 gprofng/src/gmon_basic_blocks.cc
 create mode 100644 gprofng/src/gmon_call_graph.cc
 create mode 100644 gprofng/src/gmon_cg_arcs.cc
 create mode 100644 gprofng/src/gmon_corefile.cc
 create mode 100644 gprofng/src/gmon_hist.cc
 create mode 100644 gprofng/src/gmon_io.cc
 create mode 100644 gprofng/src/gmon_io.h
 create mode 100644 gprofng/src/gmon_out.h
 create mode 100644 gprofng/src/gmon_symtab.cc
 create mode 100644 gprofng/src/gp-gmon.cc
 create mode 100644 gprofng/src/gp-gmon.h
 create mode 100644 gprofng/src/hist.h
 create mode 100644 gprofng/src/source.h
 create mode 100644 gprofng/src/symtab.h
 create mode 100644 gprofng/testsuite/gprofng.display/gp-gmon.exp

-- 
2.51.0



More information about the Binutils mailing list