Skip to content

Commit

Permalink
Increasing block size (as a result bigger memory allocation is allowed)
Browse files Browse the repository at this point in the history
  • Loading branch information
saf-e committed Apr 7, 2022
1 parent 3104dd4 commit 3fed595
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion easy_profiler_core/thread_storage.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class CSwitchBlock : public profiler::CSwitchEvent

//////////////////////////////////////////////////////////////////////////

EASY_CONSTEXPR uint16_t BLOCKS_IN_CHUNK = 128U;
EASY_CONSTEXPR uint16_t BLOCKS_IN_CHUNK = 1024U;
EASY_CONSTEXPR uint16_t SIZEOF_BLOCK = sizeof(profiler::BaseBlockData) + 1U + sizeof(uint16_t); // SerializedBlock stores BaseBlockData + at least 1 character for name ('\0') + 2 bytes for size of serialized data
EASY_CONSTEXPR uint16_t SIZEOF_CSWITCH = sizeof(profiler::CSwitchEvent) + 1U + sizeof(uint16_t); // SerializedCSwitch also stores additional 4 bytes to be able to save 64-bit thread_id

Expand Down

0 comments on commit 3fed595

Please sign in to comment.