From ee0d2e644522a5feca6fb10f5ffc837e78b4524d Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Wed, 8 Oct 2008 14:07:21 +0000 Subject: [PATCH] Right check, wrong place. The "-C" option (don't profile child teams) was broken. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27926 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/bin/debug/profile/profile.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bin/debug/profile/profile.cpp b/src/bin/debug/profile/profile.cpp index f56d30425f..03e54c0827 100644 --- a/src/bin/debug/profile/profile.cpp +++ b/src/bin/debug/profile/profile.cpp @@ -389,6 +389,9 @@ main(int argc, const char* const* argv) } case B_DEBUGGER_MESSAGE_TEAM_CREATED: + if (!gOptions.profile_teams) + break; + if (threadManager.AddTeam(message.team_created.new_team) == B_OK) { threadManager.AddThread(message.team_created.new_team); @@ -414,9 +417,6 @@ main(int argc, const char* const* argv) break; case B_DEBUGGER_MESSAGE_IMAGE_CREATED: - if (!gOptions.profile_teams) - break; - if (Team* team = threadManager.FindTeam(message.origin.team)) { team->AddImage(message.image_created.info, message.image_created.image_event);