Added basic profiling
This commit is contained in:
parent
94688ed340
commit
6171cd71ca
1 changed files with 2 additions and 2 deletions
4
.github/workflows/profiling.yaml
vendored
4
.github/workflows/profiling.yaml
vendored
|
|
@ -30,7 +30,7 @@ jobs:
|
||||||
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 }}
|
||||||
echo "This is the working directory: $PWD"
|
echo "This is the working directory: $PWD"
|
||||||
scalene --profile-only $GITHUB_WORKSPACE/cognee/api/v1/cognify/code_graph_pipeline.py
|
scalene --profile-only /home/runner/work/cognee/cognee/api/v1/cognify/code_graph_pipeline.py
|
||||||
|
|
||||||
# Run profiler on the head branch
|
# Run profiler on the head branch
|
||||||
- name: Run profiler on head branch
|
- name: Run profiler on head branch
|
||||||
|
|
@ -38,7 +38,7 @@ jobs:
|
||||||
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 }}
|
||||||
echo "This is the working directory: $PWD"
|
echo "This is the working directory: $PWD"
|
||||||
scalene --profile-only $GITHUB_WORKSPACE/cognee/api/v1/cognify/code_graph_pipeline.py
|
scalene --profile-only /home/runner/work/cognee/cognee/api/v1/cognify/code_graph_pipeline.py
|
||||||
|
|
||||||
# Compare profiling results
|
# Compare profiling results
|
||||||
- name: Compare profiling results
|
- name: Compare profiling results
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue