From 8be44afa506388b6ca375d3db67a5427c0853cf3 Mon Sep 17 00:00:00 2001 From: Zachary Marion Date: Wed, 3 Jan 2024 09:36:34 -0800 Subject: [PATCH] Remove change to pidTidKey function --- src/import/trace-event.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/import/trace-event.ts b/src/import/trace-event.ts index feed3737..ceb09ead 100644 --- a/src/import/trace-event.ts +++ b/src/import/trace-event.ts @@ -140,7 +140,7 @@ interface TraceEventObject { type Trace = TraceEvent[] | TraceEventObject | TraceWithSamples -function pidTidKey(pid: number | number, tid: number | number): string { +function pidTidKey(pid: number, tid: number): string { // We zero-pad the PID and TID to make sorting them by pid/tid pair later easier. return `${zeroPad('' + pid, 10)}:${zeroPad('' + tid, 10)}` } @@ -349,7 +349,7 @@ function frameInfoForEvent( } } -function getProfileNameFromPidTid( +function getProfileName( processName: string | undefined, threadName: string | undefined, pid: number, @@ -384,7 +384,7 @@ function getProfileNamesFromSamples( const profileKey = pidTidKey(pid, tid) const processName = processNamesByPid.get(pid) const threadName = threadNamesByPidTid.get(profileKey) - const profileName = getProfileNameFromPidTid(processName, threadName, pid, tid) + const profileName = getProfileName(processName, threadName, pid, tid) profileNamesByPidTid.set(profileKey, profileName) }) @@ -409,7 +409,7 @@ function getProfileNamesFromTraceEvents( const profileKey = pidTidKey(pid, tid) const processName = processNamesByPid.get(pid) const threadName = threadNamesByPidTid.get(profileKey) - const profileName = getProfileNameFromPidTid(processName, threadName, pid, tid) + const profileName = getProfileName(processName, threadName, pid, tid) profileNamesByPidTid.set(profileKey, profileName) })