mirror of
https://github.com/yse/easy_profiler.git
synced 2024-12-31 02:49:13 +08:00
3a2c8aaef1
(profiler_gui) Added possibility to change where chronometer (time-meter) item text will be painted: at the top of the scene, in the center or at the bottom of the scene. See menu View -> Chronometer text.
51 lines
1.7 KiB
C++
51 lines
1.7 KiB
C++
/************************************************************************
|
|
* file name : globals.cpp
|
|
* ----------------- :
|
|
* creation time : 2016/08/03
|
|
* copyright : (c) 2016 Victor Zarubkin
|
|
* author : Victor Zarubkin
|
|
* email : v.s.zarubkin@gmail.com
|
|
* ----------------- :
|
|
* description : The file contains implementation of global constants and variables for profiler gui.
|
|
* ----------------- :
|
|
* change log : * 2016/08/03 Victor Zarubkin: initial commit.
|
|
* :
|
|
* : *
|
|
* ----------------- :
|
|
* license : TODO: add license text
|
|
************************************************************************/
|
|
|
|
#define IGNORE_GLOBALS_DECLARATION
|
|
#include "globals.h"
|
|
#undef IGNORE_GLOBALS_DECLARATION
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
namespace profiler_gui {
|
|
|
|
EasyGlobals& EasyGlobals::instance()
|
|
{
|
|
static EasyGlobals globals;
|
|
return globals;
|
|
}
|
|
|
|
EasyGlobals::EasyGlobals()
|
|
: selected_thread(0)
|
|
, selected_block(::profiler_gui::numeric_max<decltype(selected_block)>())
|
|
, chrono_text_position(ChronoTextPosition_Center)
|
|
, draw_graphics_items_borders(true)
|
|
, display_only_relevant_stats(true)
|
|
, collapse_items_on_tree_close(false)
|
|
, all_items_expanded_by_default(true)
|
|
, bind_scene_and_tree_expand_status(true)
|
|
{
|
|
|
|
}
|
|
|
|
} // END of namespace profiler_gui.
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|