Skip to content

Commit

Permalink
add warning if thread state cannot be matched
Browse files Browse the repository at this point in the history
  • Loading branch information
planrich committed Apr 26, 2017
1 parent 8cae862 commit b7f9577
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/vmprof_main.h
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ static PY_THREAD_STATE_T * _get_pystate_for_this_thread(void) {
} while ((istate = PyInterpreterState_Next(istate)) != NULL);

// uh? not found?
fprintf(stderr, "WARNING: cannot find thread state, sample will be thrown away\n");
return NULL;
}
#endif
Expand Down

0 comments on commit b7f9577

Please sign in to comment.