forcedotcom / salesforcedx-apex

Salesforce Apex Node Library
BSD 3-Clause "New" or "Revised" License
19 stars 25 forks source link

feat: add elapsed time decorator to apex node class methods #349

Closed peternhale closed 8 months ago

peternhale commented 8 months ago

This PR add detailed elapsed time debug log data for most of the class methods in this module. The log records are typically enabled using debug log level, with a few methods that do a lot of string manipulation and tagged with debug log level trace.

This is an investigative step in trying to diagnose customer reported delays in commands not finishing (actually hanging) after the command in question has finished rendering the results, or commands that are taking an inordinately log time to run, such as test runs in a few seconds but command take 35 minutes to complete.

@W-15130974@

There should be no perceived change in running commands, however with log level set to debug or trace, the CLI log files will include elapsed time data gathered during command execution

CristiCanizales commented 8 months ago

nit: is the WI in the description the right one?

peternhale commented 8 months ago

nit: is the WI in the description the right one?

Not really, I can create another and update the PR

peternhale commented 8 months ago

nit: is the WI in the description the right one?

Not really, I can create another and update the PR

@CristiCanizales corrected work item.