From 7e66d5038e3573491f3b5f1faad196c0a9bf8019 Mon Sep 17 00:00:00 2001 From: Vasilije <8619304+Vasilije1990@users.noreply.github.com> Date: Wed, 4 Dec 2024 18:20:02 +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 976a61f53..c49f6ef87 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 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 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