Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(275)

Unified Diff: tracing/tracing/extras/importer/trace_event_importer.html

Issue 1783223002: strip file name to just 1st 2 folders. Base URL: https://chromium.googlesource.com/external/github.com/catapult-project/catapult.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/extras/importer/trace_event_importer.html
diff --git a/tracing/tracing/extras/importer/trace_event_importer.html b/tracing/tracing/extras/importer/trace_event_importer.html
index 1bdfc6de2cba033900f69da533935b96e6758f86..fa05fc4eace2e2dbdb69f750b99ce9cae48c5ba3 100644
--- a/tracing/tracing/extras/importer/trace_event_importer.html
+++ b/tracing/tracing/extras/importer/trace_event_importer.html
@@ -949,6 +949,9 @@ tr.exportTo('tr.e.importer', function() {
objectTypeNameMap[objectTypeId] = rawObjectTypeName.substring(
objectTypeNamePrefix.length,
rawObjectTypeName.length - objectTypeNameSuffix.length);
+ } else if (rawObjectTypeName.startsWith('..')) {
+ var tokens = rawObjectTypeName.split('/').slice(2, 4);
+ objectTypeNameMap[objectTypeId] = tokens.join('/');
} else {
// Without compiler-specific prefix and suffix (manually annotated
// object types and '[unknown]').
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698