Skip to content

Commit

Permalink
re-enable pyscope
Browse files Browse the repository at this point in the history
  • Loading branch information
Itoktsnhc committed Sep 5, 2023
1 parent 8e22044 commit f136cca
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions Stat.Itok.Func.Worker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,21 @@ RUN cd /src/dotnet-function-app/Stat.Itok.Func.Worker && \
FROM mcr.microsoft.com/azure-functions/dotnet:4
ENV AzureWebJobsScriptRoot=/home/site/wwwroot \
AzureFunctionsJobHost__Logging__Console__IsEnabled=true
#
#COPY ./_misc /home/
#
#ENV CORECLR_ENABLE_PROFILING=1
#ENV CORECLR_PROFILER={BD1A650D-AC5D-4896-B64F-D6FA25D6B26A}
#ENV CORECLR_PROFILER_PATH=/home/Pyroscope.Profiler.Native.so
#ENV LD_PRELOAD=/home/Pyroscope.Linux.ApiWrapper.x64.so


#ENV PYROSCOPE_APPLICATION_NAME=stat.itok.worker
#ENV PYROSCOPE_SERVER_ADDRESS=http://pyroscope:4040/
#ENV PYROSCOPE_LOG_LEVEL=debug
#ENV PYROSCOPE_PROFILING_ENABLED=1
#ENV PYROSCOPE_PROFILING_ALLOCATION_ENABLED=true
#ENV PYROSCOPE_PROFILING_CONTENTION_ENABLED=true
#ENV PYROSCOPE_PROFILING_EXCEPTION_ENABLED=true

COPY ./_misc /home/

ENV CORECLR_ENABLE_PROFILING=1
ENV CORECLR_PROFILER={BD1A650D-AC5D-4896-B64F-D6FA25D6B26A}
ENV CORECLR_PROFILER_PATH=/home/Pyroscope.Profiler.Native.so
ENV LD_PRELOAD=/home/Pyroscope.Linux.ApiWrapper.x64.so


ENV PYROSCOPE_APPLICATION_NAME=stat.itok.worker
ENV PYROSCOPE_SERVER_ADDRESS=http://pyroscope:4040/
ENV PYROSCOPE_LOG_LEVEL=debug
ENV PYROSCOPE_PROFILING_ENABLED=1
ENV PYROSCOPE_PROFILING_ALLOCATION_ENABLED=true
ENV PYROSCOPE_PROFILING_CONTENTION_ENABLED=true
ENV PYROSCOPE_PROFILING_EXCEPTION_ENABLED=true

COPY --from=installer-env ["/home/site/wwwroot", "/home/site/wwwroot"]

0 comments on commit f136cca

Please sign in to comment.