Skip to content

Commit

Permalink
fix(cli): more console output for reclustering
Browse files Browse the repository at this point in the history
Summary: Adding a simple console logging to show how many clusters are loaded for reclustering. This gives additional debug information on reclustering memory leaks.

Reviewed By: tulga1970

Differential Revision: D51053173

fbshipit-source-id: c82191bf765175f1c39eb0004f83dd9ec23fefac
  • Loading branch information
JacksonGL authored and facebook-github-bot committed Nov 9, 2023
1 parent b67ff55 commit 80fd71b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/src/lib/HeapAnalyzer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,7 @@ class MemoryAnalyst {
const existingClusters = await clusterLogger.loadClusters(
config.currentUniqueClusterDir,
);
info.lowLevel(`Number of clusters loaded: ${existingClusters.length}`);
// figure out stale and new clusters
const clusterDiff = NormalizedTrace.diffClusters(
clusters,
Expand Down

0 comments on commit 80fd71b

Please sign in to comment.