Index: source/ps/Profile.cpp =================================================================== --- source/ps/Profile.cpp +++ source/ps/Profile.cpp @@ -78,13 +78,14 @@ ColumnDescription() { - columns.push_back(ProfileColumn("Name", 230)); - columns.push_back(ProfileColumn("calls/frame", 80)); - columns.push_back(ProfileColumn("msec/frame", 80)); - columns.push_back(ProfileColumn("mallocs/frame", 120)); - columns.push_back(ProfileColumn("calls/turn", 80)); - columns.push_back(ProfileColumn("msec/turn", 80)); - columns.push_back(ProfileColumn("mallocs/turn", 80)); + columns.push_back(ProfileColumn("Name", 220)); + columns.push_back(ProfileColumn("calls/frame", 90)); + columns.push_back(ProfileColumn("msec/frame", 90)); + columns.push_back(ProfileColumn("mallocs/frame", 90)); + columns.push_back(ProfileColumn("calls/turn", 120)); + columns.push_back(ProfileColumn("msec/turn", 90)); + columns.push_back(ProfileColumn("mallocs/turn", 90)); + columns.push_back(ProfileColumn("msec/call", 120)); } }; @@ -223,6 +224,12 @@ case 6: sprintf_s(buf, ARRAY_SIZE(buf), "%.1f", child->GetTurnMallocs()); break; + case 7: + if (child->GetTurnCalls() > 0) + sprintf_s(buf, ARRAY_SIZE(buf), "%.3f", static_cast(child->GetTurnTime() * 1000.0 / child->GetTurnCalls())); + else + sprintf_s(buf, ARRAY_SIZE(buf), "%.3f", 0.0f); + break; } return CStr(buf); }