InvokeAI/tests
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
..
aa_nodes [feature] Download Queue (#5225) 2023-12-22 12:35:57 -05:00
app Model Manager Refactor: Install remote models and store their tags and other metadata (#5361) 2024-01-14 19:54:53 +00:00
backend Model Manager Refactor: Install remote models and store their tags and other metadata (#5361) 2024-01-14 19:54:53 +00:00
fixtures fix(db): formatting 2023-12-13 11:25:57 +11:00
inpainting Rename default schedulers across the app 2023-05-12 03:44:20 +12:00
test_model_manager prevent vae: '' from crashing model 2023-08-10 17:33:04 -04:00
test_model_probe/vae test(model management): test VaeFolderProbe 2023-09-20 12:48:59 -07:00
__init__.py parent 9eed1919c2 2023-02-24 18:57:02 -08:00
conftest.py Model Manager Refactor: Install remote models and store their tags and other metadata (#5361) 2024-01-14 19:54:53 +00:00
dev_prompts.txt Added linux to the workflows (#463) 2022-09-16 17:46:57 -04:00
legacy_tests.sh Add back old dream.py as legacy_api.py 2022-10-12 20:35:56 -04:00
test_config.py feat: workflow library (#5148) 2023-12-09 09:48:38 +11:00
test_model_manager.py feat: refactor services folder/module structure 2023-10-12 12:15:06 -04:00
test_model_probe.py lint 2023-09-20 12:53:25 -07:00
test_path.py fix(tests): remove test for frontend build 2023-12-11 12:30:13 +11:00
test_profiler.py feat: add profiler util (#5601) 2024-01-31 10:51:57 +00:00
test_sqlite_migrator.py fix(db): rename "SQLiteMigrator" -> "SqliteMigrator" 2023-12-13 11:31:15 +11:00
validate_pr_prompt.txt fixes to env parsing, textual inversion & help text 2023-05-18 10:48:23 -04:00