-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Capture profiling statistics (#1110)
* Add placeholder function for recording stats * scale_run returns the simulation object * Record population dataframe size, memory usage in MB, and times extended * Sort include * Force ignore of profiling results directory, and force typing of stats * Avoid list values in stats file * Isort pass number 2 * Add psutil to requirements to capture disk IO during profiling. * Apply suggestions from code review Co-authored-by: Matt Graham <[email protected]> * Capture disk statistics too * Capture disk I/O status * Alter output format to optionally include HTML, and default-include stats * Avoid creation of pyisession file, manage through stats file * Lint file * Obey the linter * isort hook * Apply suggestions from code review * Inline help string definition * Remove separate paths and parameters modules * Inline help string and use default arg formatter * Simplify paths and sim outputs to profiling directory * Use relative import * Use passed directory rather than constant * Factor out saving arguments to JSON Also wrap ignore_warnings into scale_run function * Use ignore_warnings argument * Use relative import * Change save args function call signature * Refactor run_profiling output writing * Revert relative imports Only work when within a package * Refactoring of run_profiling Decrease chance of keyword arg name collisions Handle missing value in command-line args Remove unnecessary logic for dealing with missing args Correct type annotations * Make logging of population checksum optional * Change profiling run arguments * Correct scale_run type annotations * Add option to save raw profiler output * Expose key simulation params from run_profiling * Parse key-value pairs directly in parse_args * Rename CLI argument for consistency with function * Unpack CLI args in to function call * Add basic check to key-value parsing * Use variable to set profiling results directory in workflow * Exclude profiling_results from distributions * Remove whitespace to satisfy isort * Ensure html_output Path converted to string to avoid JSON error * Increase scheduled profiling job timeout --------- Co-authored-by: Matt Graham <[email protected]> Co-authored-by: Matt Graham <[email protected]>
- Loading branch information
1 parent
1dee535
commit e7cb080
Showing
10 changed files
with
438 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.