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

Unified Diff: tracing/tracing/extras/importer/linux_perf/sched_parser.html

Issue 2450073002: Include scheduling-only threads in tracks (Closed)
Patch Set: Include scheduling-only threads in tracks Created 4 years, 2 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 | « tracing/trace_viewer.gypi ('k') | tracing/tracing/ui/tracks/container_track.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/extras/importer/linux_perf/sched_parser.html
diff --git a/tracing/tracing/extras/importer/linux_perf/sched_parser.html b/tracing/tracing/extras/importer/linux_perf/sched_parser.html
index b3fa3788160b191313ade5502ab021a28c39c5a5..83f682bf08bd776df3a447d1ce45b95a1f4128ec 100644
--- a/tracing/tracing/extras/importer/linux_perf/sched_parser.html
+++ b/tracing/tracing/extras/importer/linux_perf/sched_parser.html
@@ -68,6 +68,14 @@ tr.exportTo('tr.e.importer.linux_perf', function() {
var nextPid = parseInt(event[6]);
var nextPrio = parseInt(event[7]);
+ if (eventBase.tgid !== undefined) {
+ var process = this.importer.model_.getOrCreateProcess(eventBase.tgid);
+ if (!process.getThread(pid)) {
+ var thread = process.getOrCreateThread(pid);
+ thread.name = eventBase.threadName;
+ }
+ }
+
var nextThread = this.importer.threadsByLinuxPid[nextPid];
var nextName;
if (nextThread)
@@ -147,4 +155,3 @@ tr.exportTo('tr.e.importer.linux_perf', function() {
};
});
</script>
-
« no previous file with comments | « tracing/trace_viewer.gypi ('k') | tracing/tracing/ui/tracks/container_track.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698