Skip to content

Commit

Permalink
fix(cli): fix a bug in heap analysis command
Browse files Browse the repository at this point in the history
Summary: Fix a bug in heap analysis command for loading external heap analysis plugin.

Differential Revision: D52978075

fbshipit-source-id: b87b3354e7cf44a7fdd9ef3e4991578785c815aa
  • Loading branch information
JacksonGL authored and facebook-github-bot committed Jan 22, 2024
1 parent ed5557f commit e723778
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/cli/src/commands/heap/HeapAnalysisCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,12 @@ export default class RunHeapAnalysisCommand extends BaseCommand {
async run(options: CLIOptions): Promise<void> {
// process command line arguments and load analysis modules
const args = options.cliArgs;
const plugin = options.configFromOptions?.heapAnalysisPlugin;
let plugin = options.configFromOptions?.heapAnalysisPlugin;
if (plugin != null) {
plugin = `${plugin}`;
}
const analysisMap = heapAnalysisLoader.loadAllAnalysis({
heapAnalysisPlugin: `${plugin}`,
heapAnalysisPlugin: plugin,
errorWhenPluginFailed: true,
});

Expand Down

0 comments on commit e723778

Please sign in to comment.