I'm using uWSGI with the "--profiler" flag switched on but I can't seem to find the output file (if there is one), and (like many things in uWSGI) this isn't properly documented.
Where does uWSGI put its profiler file?
2.1k Views Asked by itzhaki At
2
There are 2 best solutions below
0
Kuko
On
I just got this problem today. Here is a good project, you can use: https://github.com/what-studio/profiling
I used it from my code, like this:
from profiling.tracing import TracingProfiler
profiler = TracingProfiler()
profiler.start()
# ... run your program...
profiler.stop()
# save profile data to file
profiler.dump('path/to/file')
Related Questions in PYTHON
- How to store a date/time in sqlite (or something similar to a date)
- Instagrapi recently showing HTTPError and UnknownError
- How to Retrieve Data from an MySQL Database and Display it in a GUI?
- How to create a regular expression to partition a string that terminates in either ": 45" or ",", without the ": "
- Python Geopandas unable to convert latitude longitude to points
- Influence of Unused FFN on Model Accuracy in PyTorch
- Seeking Python Libraries for Removing Extraneous Characters and Spaces in Text
- Writes to child subprocess.Popen.stdin don't work from within process group?
- Conda has two different python binarys (python and python3) with the same version for a single environment. Why?
- Problem with add new attribute in table with BOTO3 on python
- Can't install packages in python conda environment
- Setting diagonal of a matrix to zero
- List of numbers converted to list of strings to iterate over it. But receiving TypeError messages
- Basic Python Question: Shortening If Statements
- Python and regex, can't understand why some words are left out of the match
Related Questions in UWSGI
- Root path analogue in uWSGI as in Uvicorn
- uWSGI - a Django view function send out https requests to other server and fail to get response via uWSGI
- Environment variable PATH_INFO not defined by lighttpd using uwsgi module
- How do I restrict a Flask App running on Windows 10 with nginx and uwsgi using docker-compose.yml to a specific custom domain?
- nginx + uwsgi upstream prematurely closed connection while reading response header from upstream
- Does uWSGI terminate processes when the nginx client disconnects?
- uwsgi with flask tf.config.list_physical_devices('GPU') return empty
- Flask variable appears to be out of sync
- Production debugging a python app under uwsgi, supervisord, and nginx
- How to specify virtualenv for Uwsgi?
- Flask SocketIO continual websocket error when deployed, works fine locally
- AttributeError: module 'uwsgi' has no attribute 'masterpid'
- Why does .flaskenv variables not work with uWSGI but does by running flask by itself?
- Security considerations in a nginx and uwsgi serve and django
- Why a Taipy app is very slow after deployment?
Related Questions in CPROFILE
- Does cProfile include the time waiting for the GIL
- multi-thread QCoreApplication stops before cProfile, PySide6
- Python: adding method to decorator
- cProfile ignores some builtins
- Yappi profiler causing horrible slowdown
- Performance test with cProfile > negative function calls
- Why is the total execution time so much greater than the profiled cumulated time in Python?
- Significant delay between python function completion and return
- How to fix 'ModuleNotFoundError: No module named transformer.modules' while profiling a Python script with cProfile?
- How come the tottime is *greater* than cumtime, when using cProfile?
- Can I turn off profiling in a portion of python code when invoking cProfile as a script?
- What does {method 'poll' of 'select.poll'...} mean in cprofile output?
- How to use "dump_pstats" properly to retrieve the sorted data of the "cProfile" into "txt" file?
- cProfile measure module with -- arguments
- Python cProfile : Can't get attribute 'myclass' on <module 'cProfile' from 'path_to_cProfile.py'
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
A useful trick is to use uWSGIs logger to filter out the profiler logs into their own file: