mirror of
https://github.com/wolfpld/tracy
synced 2025-05-03 22:13:51 +00:00
Preallocation size is in number of elements, not bytes.
This commit is contained in:
parent
837ec2f9d8
commit
472b5a521f
@ -68,7 +68,7 @@ enum { QueuePrealloc = 256 * 1024 };
|
|||||||
|
|
||||||
static RPMallocInit init_order(101) s_rpmalloc_init;
|
static RPMallocInit init_order(101) s_rpmalloc_init;
|
||||||
static thread_local RPMallocThreadInit init_order(102) s_rpmalloc_thread_init;
|
static thread_local RPMallocThreadInit init_order(102) s_rpmalloc_thread_init;
|
||||||
static moodycamel::ConcurrentQueue<QueueItem> init_order(103) s_queue( QueueItemSize * QueuePrealloc );
|
static moodycamel::ConcurrentQueue<QueueItem> init_order(103) s_queue( QueuePrealloc );
|
||||||
static thread_local moodycamel::ProducerToken init_order(104) s_token_detail( s_queue );
|
static thread_local moodycamel::ProducerToken init_order(104) s_token_detail( s_queue );
|
||||||
thread_local ProducerWrapper init_order(105) s_token { s_queue.get_explicit_producer( s_token_detail ) };
|
thread_local ProducerWrapper init_order(105) s_token { s_queue.get_explicit_producer( s_token_detail ) };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user