Add new property indicating whether profiler is available
This commit is contained in:
parent
1a0fcd5f56
commit
48c1b51875
1 changed files with 9 additions and 0 deletions
|
@ -1590,6 +1590,15 @@ fgInitCommands ()
|
|||
typedef bool (*dummy)();
|
||||
fgTie( "/command/view/next", dummy(0), do_view_next );
|
||||
fgTie( "/command/view/prev", dummy(0), do_view_prev );
|
||||
|
||||
SGPropertyNode* profiler_available =
|
||||
globals->get_props()->getNode("/sim/debug/profiler-available", true);
|
||||
#ifdef FG_HAVE_GPERFTOOLS
|
||||
profiler_available->setBoolValue(true);
|
||||
#else
|
||||
profiler_available->setBoolValue(false);
|
||||
#endif
|
||||
profiler_available->setAttributes(SGPropertyNode::READ);
|
||||
}
|
||||
|
||||
// end of fg_commands.cxx
|
||||
|
|
Loading…
Reference in a new issue