-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[python] scenario with
DD_PROFILING_EXPORT_LIBDD_ENABLED
(#46)
* 3.11_libdd * install rust * fix symlink * print out time * use libdd dockerfile * install rust for 3.10 scenario * Discard changes to correctness_test.go * remove unnecessary parts * Discard changes to .gitignore * increase timeout for python * change to trigger actions * increase time out * timeout for step not job * Discard changes to .github/workflows/test.yml * increase timeout on go test * Discard changes to .github/workflows/test.yml * Discard changes to scenarios/python_basic_3.11/requirements.txt * pin version * Update requirements.txt * Discard changes to base_images/Dockerfile.python-3.11-ddprof * update
- Loading branch information
1 parent
304bbbe
commit add5bb0
Showing
7 changed files
with
28 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
ARG BASE_IMAGE="prof-python-3.11-libdd" | ||
FROM $BASE_IMAGE | ||
|
||
# Copy the Python target into the container | ||
COPY ./scenarios/python_basic_3.11_libdd/main.py \ | ||
./scenarios/python_basic_3.11_libdd/requirements.txt \ | ||
/app/ | ||
RUN chmod 644 /app/* | ||
|
||
|
||
# Set the working directory to the location of the program | ||
WORKDIR /app | ||
|
||
RUN pip install --no-cache-dir -r requirements.txt | ||
|
||
ENV EXECUTION_TIME_SEC="2" | ||
|
||
# Run the program when the container starts | ||
CMD python main.py | ||
# CMD ddprof -l notice --preset cpu_live_heap python main.py | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../python_basic_3.11/expected_profile.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../python_basic_3.11/main.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../python_basic_3.11/requirements.txt |