mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
No need to get process name more than once.
This commit is contained in:
parent
6d48404934
commit
5421164f33
@ -152,6 +152,9 @@ void Profiler::Worker()
|
|||||||
{
|
{
|
||||||
enum { BulkSize = TargetFrameSize / QueueItemSize };
|
enum { BulkSize = TargetFrameSize / QueueItemSize };
|
||||||
|
|
||||||
|
const auto procname = GetProcessName();
|
||||||
|
const auto pnsz = std::min<size_t>( strlen( procname ), WelcomeMessageProgramNameSize - 1 );
|
||||||
|
|
||||||
moodycamel::ConsumerToken token( s_queue );
|
moodycamel::ConsumerToken token( s_queue );
|
||||||
|
|
||||||
ListenSocket listen;
|
ListenSocket listen;
|
||||||
@ -169,9 +172,6 @@ void Profiler::Worker()
|
|||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
const auto procname = GetProcessName();
|
|
||||||
const auto pnsz = std::min<size_t>( strlen( procname ), WelcomeMessageProgramNameSize - 1 );
|
|
||||||
|
|
||||||
WelcomeMessage welcome;
|
WelcomeMessage welcome;
|
||||||
#ifdef DISABLE_LZ4
|
#ifdef DISABLE_LZ4
|
||||||
// notify client that lz4 compression is disabled (too slow in debug builds)
|
// notify client that lz4 compression is disabled (too slow in debug builds)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user