From 2f5c4a90d80779662780bfec84209c64441e536b Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Thu, 18 Sep 2008 00:20:13 +0000 Subject: [PATCH] We don't get a separate B_DEBUGGER_MESSAGE_THREAD_CREATED message after a B_DEBUGGER_MESSAGE_TEAM_CREATED, so we have to immediately start profiling the main thread. Profiling child processes basically works now, but since we still don't track image creation/deletion, the results aren't correct yet (that is library symbols might keep the same addresses). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27608 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/bin/debug/profile.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/bin/debug/profile.cpp b/src/bin/debug/profile.cpp index 6f8edae3fd..6c47cca66e 100644 --- a/src/bin/debug/profile.cpp +++ b/src/bin/debug/profile.cpp @@ -612,7 +612,10 @@ main(int argc, const char* const* argv) } case B_DEBUGGER_MESSAGE_TEAM_CREATED: - threadManager.AddTeam(message->team_created.new_team); + if (threadManager.AddTeam(message->team_created.new_team) + == B_OK) { + threadManager.AddThread(message->team_created.new_team); + } break; case B_DEBUGGER_MESSAGE_TEAM_DELETED: // a debugged team is gone -- quit, if it is our team