Chromium Code Reviews| Index: runtime/vm/profiler_service.cc |
| diff --git a/runtime/vm/profiler_service.cc b/runtime/vm/profiler_service.cc |
| index 8152884af71fa9c94c5dac6d55f7bedd374717ac..017f662ef81f2859b148823fc6c1b1b57cfeeb06 100644 |
| --- a/runtime/vm/profiler_service.cc |
| +++ b/runtime/vm/profiler_service.cc |
| @@ -553,16 +553,15 @@ ProfileFunction* ProfileCode::SetFunctionAndName(ProfileFunctionTable* table) { |
| function = table->GetUnknown(); |
| } else if (kind() == kDartCode) { |
| ASSERT(!code_.IsNull()); |
| + const String& name = String::Handle(code_.QualifiedName()); |
| const Object& obj = Object::Handle(code_.owner()); |
| if (obj.IsFunction()) { |
| - const String& user_name = String::Handle(code_.PrettyName()); |
| function = table->LookupOrAdd(Function::Cast(obj)); |
| - SetName(user_name.ToCString()); |
| + SetName(name.ToCString()); |
| } else { |
| // A stub. |
| - const String& user_name = String::Handle(code_.PrettyName()); |
| - function = table->AddStub(start(), user_name.ToCString()); |
| - SetName(user_name.ToCString()); |
| + function = table->AddStub(start(), name.ToCString()); |
| + SetName(name.ToCString()); |
|
siva
2016/02/25 18:49:48
SetName can be hoisted down outside the if {...} e
regis
2016/02/25 19:20:50
Done.
|
| } |
| } else if (kind() == kNativeCode) { |
| if (name() == NULL) { |