Repository navigation
feat(profiler): time each edit request from one table of spans - #558
Merged
Merged
Conversation
- `profiler/spans.py` names every function to wrap at startup, a split's supervoxel-split phase included, so no span sits in the edit code.
- With `PCG_PROFILER_ENABLED=1`, each edit's timeline is stored after its response under `graphene_diagnostics/<graph_id>/timing/`, beside the mesh dir.
- `err_dump` moves into that store under `errors/`, no longer under `{WATERSHED}/graphene_errors/`.
Co-Authored-By: Claude <noreply@anthropic.com>
Codecov Report❌ Patch coverage is @@ Coverage Diff @@
## pcgv3 #558 +/- ##
==========================================
+ Coverage 67.51% 69.18% +1.67%
==========================================
Files 89 92 +3
Lines 8643 8947 +304
Branches 1149 1183 +34
==========================================
+ Hits 5835 6190 +355
+ Misses 2619 2560 -59
- Partials 189 197 +8
... and 2 files with indirect coverage changes 🚀 New features to boost your workflow:
|
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
profiler/spans.pynames the functions to wrap.graphene_diagnostics/<graph_id>/timing/, a sibling of the mesh dir, once the response has been sent.errors/; dumps already ingraphene_errors/stay where they are.PCG_PROFILER_ENABLED=1. Memory is tracked as RSS only;tracemallocnever runs in a request.Cost
Test plan
pytest pychunkedgraph/tests/utils pychunkedgraph/tests/profiler: 55 passed, also onpcgv3's tip and on both openpcgv3pull requests with this change appliedPCG_PROFILER_ENABLED=1leaves a file undertiming/🤖 Generated with Claude Code