Chromium Code Reviews| Index: mojo/common/dart/lib/tracing_helper.dart |
| diff --git a/mojo/common/dart/lib/tracing_helper.dart b/mojo/common/dart/lib/tracing_helper.dart |
| index ebe45a9a724be93d5cee7e05295700fc91e1e12c..86bda9f90e4aa8eedf03ba6b4d93cb10aa0af40a 100644 |
| --- a/mojo/common/dart/lib/tracing_helper.dart |
| +++ b/mojo/common/dart/lib/tracing_helper.dart |
| @@ -21,7 +21,7 @@ import 'package:mojo_services/tracing/tracing.mojom.dart'; |
| // to perform tracing. |
| class TracingHelper { |
| TraceProviderImpl _impl; |
| - String _tid; |
| + int _tid; |
| // Construct an instance of TracingHelper from within your application's |
| // |initialize()| method. |appName| will be used to form a thread identifier |
| @@ -34,7 +34,7 @@ class TracingHelper { |
| if (appName.length > 20) { |
| appName = appName.substring(appName.length - 20); |
| } |
| - _tid = "${appName}/${Isolate.current.hashCode.toString()}"; |
| + _tid = Isolate.current.hashCode; |
|
qsr
2015/09/08 12:38:54
Can you mix the hashCode of the appName someway?
ppi
2015/09/08 16:42:50
Done.
|
| ApplicationConnection connection = app.connectToApplication("mojo:tracing"); |
| connection.provideService(TraceProviderName, (e) { |
| assert(_impl == null); |