Added basic profiling
This commit is contained in:
parent
7e66d5038e
commit
df7bbfe3b9
1 changed files with 2 additions and 2 deletions
4
.github/workflows/profiling.yaml
vendored
4
.github/workflows/profiling.yaml
vendored
|
|
@ -29,14 +29,14 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
echo "Profiling the base branch for code_graph_pipeline.py"
|
echo "Profiling the base branch for code_graph_pipeline.py"
|
||||||
git checkout ${{ github.event.pull_request.base.sha }}
|
git checkout ${{ github.event.pull_request.base.sha }}
|
||||||
scalene --profile-only $GITHUB_WORKSPACE/cognee/api/v1/cognify/code_graph_pipeline.py --json-output base_results.json
|
scalene --profile-only $GITHUB_WORKSPACE/cognee/api/v1/cognify/code_graph_pipeline.py --json-output=base_results.json
|
||||||
|
|
||||||
# Run profiler on the head branch
|
# Run profiler on the head branch
|
||||||
- name: Run profiler on head branch
|
- name: Run profiler on head branch
|
||||||
run: |
|
run: |
|
||||||
echo "Profiling the head branch for code_graph_pipeline.py"
|
echo "Profiling the head branch for code_graph_pipeline.py"
|
||||||
git checkout ${{ github.event.pull_request.head.sha }}
|
git checkout ${{ github.event.pull_request.head.sha }}
|
||||||
scalene --profile-only $GITHUB_WORKSPACE/cognee/api/v1/cognify/code_graph_pipeline.py --json-output head_results.json
|
scalene --profile-only $GITHUB_WORKSPACE/cognee/api/v1/cognify/code_graph_pipeline.py --json-output=head_results.json
|
||||||
|
|
||||||
# Compare profiling results
|
# Compare profiling results
|
||||||
- name: Compare profiling results
|
- name: Compare profiling results
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue