mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
global logbuffer (#297)
* - implement a global logbuffer - providerrs232 reduce log spam * logger add signal and start json push * implement logger notifier ... need some cleanup
This commit is contained in:
@@ -21,12 +21,12 @@ double getClockDelta(clock_t start)
|
||||
return ((double)(clock() - start) / CLOCKS_PER_SEC) ;
|
||||
}
|
||||
|
||||
Profiler::Profiler(const char* sourceFile, const char* func, unsigned int line) :
|
||||
_file(sourceFile),
|
||||
_func(func),
|
||||
_line(line),
|
||||
_blockId(blockCounter++),
|
||||
_startTime(clock())
|
||||
Profiler::Profiler(const char* sourceFile, const char* func, unsigned int line)
|
||||
: _file(sourceFile)
|
||||
, _func(func)
|
||||
, _line(line)
|
||||
, _blockId(blockCounter++)
|
||||
, _startTime(clock())
|
||||
{
|
||||
Profiler::initLogger();
|
||||
_logger->Message(Logger::DEBUG,_file,_func,_line,">>> enter block %d", _blockId);
|
||||
|
Reference in New Issue
Block a user