Skip to content

Commit

Permalink
Log number of found executables
Browse files Browse the repository at this point in the history
  • Loading branch information
rockdaboot committed Jun 8, 2022
1 parent 6ef0f08 commit 38ae883
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/plugins/profiling/server/routes/stacktrace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,11 +288,13 @@ export async function mgetExecutables(
);

// Create a lookup map StackFrameID -> StackFrame.
let exeFound = 0;
await logExecutionLatency(logger, 'processing data', async () => {
const docs = getDocs(resExecutables);
for (const exe of docs) {
if (exe.found) {
executables.set(exe._id, exe._source);
exeFound++;
} else {
executables.set(exe._id, {
FileName: '',
Expand All @@ -301,5 +303,7 @@ export async function mgetExecutables(
}
});

logger.info('found ' + exeFound + ' / ' + executableIDs.size + ' executables');

return executables;
}

0 comments on commit 38ae883

Please sign in to comment.