简体   繁体   中英

Google Cloud Profiler showning [Unknown - No Python thread state]

Today I started using Google Cloud Profiler for a Python3 project running on Google App Engine Standard Environment.

I expected to see references to my functions in the resulting flame graph, I spot only a [Unknown - No Python thread state] in CPU time profile.

I followed these instructions .

I don't understand if this is the expected result:

在此处输入图像描述

在此处输入图像描述

Where are you calling the profiler start function? The profile start function should be called once and as early as possible. If you already haven't move the profile initialization code to Django's urls.py file see this SO post. Then load test your app.

If you are using uWSGI, there are some limitations you need to be aware about which is mentioned in the Profiler documentation

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM