Skip to content

Commit 9c6615a

Browse files
committed
Measure performance of Python virtual environment setup
1 parent ef06b25 commit 9c6615a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

scripts/executeJupyterNotebook.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ fi
9292
# For Conda, the environment name is taken from the environment variable CODEGRAPH_CONDA_ENVIRONMENT (default "codegraph")
9393
# and the dependencies are listed in the root directory file "conda-environment.yml".
9494
# For venv, the dependencies are listed in the root directory file "requirements.txt".
95-
source "${SCRIPTS_DIR}/activateCondaEnvironment.sh"
96-
source "${SCRIPTS_DIR}/activatePythonEnvironment.sh"
95+
time source "${SCRIPTS_DIR}/activateCondaEnvironment.sh"
96+
time source "${SCRIPTS_DIR}/activatePythonEnvironment.sh"
9797

9898
jupyter --version || exit 1
9999

scripts/reports/compilations/PythonReports.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ echo "PythonReports: DOMAINS_DIRECTORY=${DOMAINS_DIRECTORY}"
3333
# For Conda, the environment name is taken from the environment variable CODEGRAPH_CONDA_ENVIRONMENT (default "codegraph")
3434
# and the dependencies are listed in the root directory file "conda-environment.yml".
3535
# For venv, the dependencies are listed in the root directory file "requirements.txt".
36-
source "${SCRIPTS_DIR}/activateCondaEnvironment.sh"
37-
source "${SCRIPTS_DIR}/activatePythonEnvironment.sh"
36+
time source "${SCRIPTS_DIR}/activateCondaEnvironment.sh"
37+
time source "${SCRIPTS_DIR}/activatePythonEnvironment.sh"
3838

3939
# Run all Python report scripts (filename ending with Csv.sh) in the REPORTS_SCRIPT_DIR and DOMAINS_DIRECTORY directories.
4040
for directory in "${REPORTS_SCRIPT_DIR}" "${DOMAINS_DIRECTORY}"; do

0 commit comments

Comments
 (0)