From df7bbfe3b9b82af4420505b6c2e16b3f4de51dcc Mon Sep 17 00:00:00 2001 From: Vasilije <8619304+Vasilije1990@users.noreply.github.com> Date: Wed, 4 Dec 2024 18:22:05 +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 c49f6ef87..94af6e442 100644 --- a/.github/workflows/profiling.yaml +++ b/.github/workflows/profiling.yaml @@ -29,14 +29,14 @@ jobs: run: | echo "Profiling the base branch for code_graph_pipeline.py" 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 - name: Run profiler on head branch run: | echo "Profiling the head branch for code_graph_pipeline.py" 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 - name: Compare profiling results