Skip to content

Commit 582e612

Browse files
committed
Remove text like files.
1 parent f0afead commit 582e612

File tree

13 files changed

+29
-1
lines changed

13 files changed

+29
-1
lines changed

Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ RUN rm ./python/lib/$runtime/site-packages/ddtrace/internal/datadog/profiling/dd
2525
RUN rm ./python/lib/$runtime/site-packages/ddtrace/internal/datadog/profiling/stack_v2/_stack_v2.*.so
2626
RUN find . -name "*.dist-info" -type d | xargs rm -rf
2727

28-
2928
# Precompile all .pyc files and remove .py files. This speeds up load time.
3029
# Compile with optimization level 2 (-OO) and PYTHONNODEBUGRANGES=1 to redtce
3130
# size of .pyc files.

ave_time.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
time (
6+
export DD_LAMBDA_HANDLER=builtins.print
7+
8+
for _ in {1..100}
9+
do
10+
python -c "import datadog_lambda.handler"
11+
done
12+
) 2>&1

number1/__init__.py

Whitespace-only changes.

number1/patch.py

Whitespace-only changes.

number2/__init__.py

Whitespace-only changes.

number2/patch.py

Whitespace-only changes.

number3/__init__.py

Whitespace-only changes.

number3/patch.py

Whitespace-only changes.

number4/__init__.py

Whitespace-only changes.

number4/patch.py

Whitespace-only changes.

number5/__init__.py

Whitespace-only changes.

number5/patch.py

Whitespace-only changes.

testit.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
PYTHON_VERSION=3.9 ARCH=amd64 ./scripts/build_layers.sh
6+
7+
cd .layers/
8+
unzip datadog_lambda_py-amd64-3.9.zip
9+
cd -
10+
11+
docker run -it \
12+
--platform=linux/amd64 \
13+
-v "$PWD"/.layers/python/lib/python3.9/site-packages:/opt/python/lib/python3.9/site-packages/ \
14+
--entrypoint='' \
15+
-e PYTHONPATH=/opt/python/lib/python3.9/site-packages \
16+
public.ecr.aws/lambda/python:3.9 \
17+
python /opt/python/lib/python3.9/site-packages/datadog_lambda/tracing.py

0 commit comments

Comments
 (0)