From 6171cd71caa160901d3048eb4b92c43e98f5ab5e Mon Sep 17 00:00:00 2001 From: Vasilije <8619304+Vasilije1990@users.noreply.github.com> Date: Wed, 4 Dec 2024 18:28:37 +0100 Subject: [PATCH] Added basic profiling --- .github/workflows/profiling.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/profiling.yaml b/.github/workflows/profiling.yaml index 77215075a..332c29ef1 100644 --- a/.github/workflows/profiling.yaml +++ b/.github/workflows/profiling.yaml @@ -30,7 +30,7 @@ jobs: echo "Profiling the base branch for code_graph_pipeline.py" git checkout ${{ github.event.pull_request.base.sha }} 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 - name: Run profiler on head branch @@ -38,7 +38,7 @@ jobs: echo "Profiling the head branch for code_graph_pipeline.py" git checkout ${{ github.event.pull_request.head.sha }} 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 - name: Compare profiling results