Skip to content

Commit c8e1332

Browse files
author
Vladimir Mezentsev
committed
gprofng: create a list of available views
In our GUI project (https://savannah.gnu.org/projects/gprofng-gui), we use the output of gp-display-text to display the data. gp-display-text did not report available views. gprofng/ChangeLog 2023-07-26 Vladimir Mezentsev <[email protected]> * src/Command.cc: Add commands for gprofng GUI. * src/gprofng.rc: Set defaults for gprofng GUI.
1 parent 55f635a commit c8e1332

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

gprofng/src/Command.cc

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const char *Command::DEFAULT_METRICS = "ei.user:name"; // if no .rc files read
4040
const char *Command::DEFAULT_SORT = "e.user:name"; // if no .rc files read
4141

4242
static char *fhdr, *cchdr, *lahdr, *iohdr, *sdhdr, *lsthdr, *lohdr;
43-
static char *methdr, *othdr, *mischdr, *deflthdr;
43+
static char *methdr, *othdr, *mischdr, *deflthdr, *andeflthdr;
4444
static char *selhdr, *filthdr, *outhdr, *exphdr, *obj_allhdr;
4545
static char *unsuphdr, *indxobjhdr;
4646
static char *helphdr, *rahdr, *ddhdr, *typehdr, *typehdr2;
@@ -177,6 +177,15 @@ static Cmdtable cmd_lst[] = { // list of commands
177177
{ DSORT, "dsort", NULL, "metric_spec", 1, &desc[DSORT]},
178178
{ EN_DESC, "en_desc", NULL, "{on|off|=<regex>}", 1, &desc[EN_DESC]},
179179

180+
{ NO_CMD, "", NULL, NULL, 0, &andeflthdr},
181+
{ TLMODE, "tlmode", NULL, "tl_mode", 1, &desc[TLMODE]},
182+
{ TLDATA, "tldata", NULL, "tl_data", 1, &desc[TLDATA]},
183+
{ TABS, "tabs", NULL, "tablist", 1, &desc[TABS]},
184+
{ CALLFLAME, "callflame", NULL, NULL, 0, &desc[CALLFLAME]},
185+
{ TIMELINE, "timeline", NULL, NULL, 0, &desc[TIMELINE]},
186+
{ DUALSOURCE, "dsrc", NULL, NULL, 0, &desc[DUALSOURCE]},
187+
{ SOURCEDISAM, "srcdis", NULL, NULL, 0, &desc[SOURCEDISAM]},
188+
180189
{ NO_CMD, "", NULL, NULL, 0, &mischdr},
181190
{ DUMMY_CMD, "<type>", NULL, NULL, 0, &typehdr},
182191
{ DUMMY_CMD, " ", NULL, NULL, 0, &typehdr2},
@@ -554,6 +563,7 @@ Command::init_desc ()
554563
mischdr = GTXT ("\nMiscellaneous commands:");
555564
exphdr = GTXT ("\nCommands for experiments (scripts and interactive mode only):");
556565
deflthdr = GTXT ("\nDefault-setting commands:");
566+
andeflthdr = GTXT ("\nDefault-setting commands that only affect gprofng GUI");
557567
selhdr = GTXT ("\nCommands controlling old-style filters/selection:");
558568
filthdr = GTXT ("\nCommands controlling filters:");
559569
indxobjhdr = GTXT ("\nCommands controlling the index objects:");

gprofng/src/gprofng.rc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,4 +129,6 @@ addpath $expts:.
129129
# Add controls for specific load objects
130130
# object_hide <Unknown>
131131

132-
# version "@(#)er.rc 1.62 11/10/31"
132+
# gprofng GUI tabs
133+
tabs dsrc:function:timeline:processes:threads:ctree:callflame:src:dis:leaks:ioactivity:ifreq:callers-callees:header
134+

0 commit comments

Comments
 (0)