mirror of
https://github.com/yse/easy_profiler.git
synced 2024-12-28 17:28:14 +08:00
4f0fabdfd6
(profiler GUI) Added plain vector of ProfBlocks (additional information for gui) for fast access; (ProfGraphicsView) Removed unnecessary methods; small refactoring; (ProfTreeWidget) Removed unnecessary map of tree items; (ProfGraphicsScrollbar) Added colorizing of minimap (green = low duration, red = long duration);
51 lines
1.4 KiB
C++
51 lines
1.4 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
|
|
************************************************************************/
|
|
|
|
#include "globals.h"
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
namespace profiler_gui {
|
|
|
|
ProfGlobalSignals::ProfGlobalSignals() : QObject()
|
|
{
|
|
}
|
|
|
|
ProfGlobalSignals::~ProfGlobalSignals()
|
|
{
|
|
}
|
|
|
|
ProfGlobals& ProfGlobals::instance()
|
|
{
|
|
static ProfGlobals globals;
|
|
return globals;
|
|
}
|
|
|
|
ProfGlobals::ProfGlobals()
|
|
: selected_thread(0)
|
|
, selected_block(0)
|
|
{
|
|
|
|
}
|
|
|
|
} // END of namespace profiler_gui.
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|