| Index: runtime/vm/port.cc
|
| diff --git a/runtime/vm/port.cc b/runtime/vm/port.cc
|
| index 3df0a632815fba755b48dc89aa32c61216188472..96bd7bbbef35be4f82a6bf0b6347e6e328670041 100644
|
| --- a/runtime/vm/port.cc
|
| +++ b/runtime/vm/port.cc
|
| @@ -326,4 +326,20 @@ void PortMap::PrintPortsForMessageHandler(MessageHandler* handler,
|
| }
|
| }
|
|
|
| +
|
| +void PortMap::DebugDumpForMessageHandler(MessageHandler* handler) {
|
| + SafepointMutexLocker ml(mutex_);
|
| + Object& msg_handler = Object::Handle();
|
| + for (intptr_t i = 0; i < capacity_; i++) {
|
| + if (map_[i].handler == handler) {
|
| + if (map_[i].state == kLivePort) {
|
| + OS::Print("Live Port = %" Pd "\n", map_[i].port);
|
| + msg_handler = DartLibraryCalls::LookupHandler(map_[i].port);
|
| + OS::Print("Handler = %s\n", msg_handler.ToCString());
|
| + }
|
| + }
|
| + }
|
| +}
|
| +
|
| +
|
| } // namespace dart
|
|
|