InvokeAI/invokeai/app
psychedelicious 4602efd598
feat: add profiler util (#5601)
* feat(config): add profiling config settings

- `profile_graphs` enables graph profiling with cProfile
- `profiles_dir` sets the output for profiles

* feat(nodes): add Profiler util

Simple wrapper around cProfile.

* feat(nodes): use Profiler in invocation processor

* scripts: add generate_profile_graphs.sh script

Helper to generate graphs for profiles.

* pkg: add snakeviz and gprof2dot to dev deps

These are useful for profiling.

* tests: add tests for profiler util

* fix(profiler): handle previous profile not stopped cleanly

* feat(profiler): add profile_prefix config setting

The prefix is used when writing profile output files. Useful to organise profiles into sessions.

* tidy(profiler): add `_` to private API

* feat(profiler): simplify API

* feat(profiler): use child logger for profiler logs

* chore(profiler): update docstrings

* feat(profiler): stop() returns output path

* chore(profiler): fix docstring

* tests(profiler): update tests

* chore: ruff
2024-01-31 10:51:57 +00:00
..
api fix(api): typo in no_cache_staticfiles.py 2024-01-22 16:10:25 +11:00
assets/images tweaks in response to psychedelicious review of PR 2023-07-26 15:27:04 +10:00
invocations feat: Add Resolution to DepthAnything 2024-01-23 14:13:50 -06:00
services feat: add profiler util (#5601) 2024-01-31 10:51:57 +00:00
shared Add CFG Rescale option for supporting zero-terminal SNR models (#4335) 2023-11-30 20:55:20 +11:00
util feat: add profiler util (#5601) 2024-01-31 10:51:57 +00:00
api_app.py chore: ruff 2024-01-22 16:10:25 +11:00