Skip to content

Commit

Permalink
#0 [GUI] fixed bug with missing empty threads on diagram
Browse files Browse the repository at this point in the history
  • Loading branch information
cas4ey committed Oct 4, 2017
1 parent 5e5672d commit 2e85a7b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion easy_profiler_core/reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -569,12 +569,14 @@ extern "C" {

const size_t thread_id_t_size = version < EASY_V_130 ? sizeof(uint32_t) : sizeof(::profiler::thread_id_t);

while (!inFile.eof() && read_number < total_blocks_number)
while (!inFile.eof())
{
EASY_BLOCK("Read thread data", ::profiler::colors::DarkGreen);

::profiler::thread_id_t thread_id = 0;
inFile.read((char*)&thread_id, thread_id_t_size);
if (inFile.eof())
break;

auto& root = threaded_trees[thread_id];

Expand Down

0 comments on commit 2e85a7b

Please sign in to comment.