cProfile
parent
fd8dff877f
commit
089b4dc651
14
app.py
14
app.py
|
@ -171,5 +171,19 @@ def post_request(url, data):
|
|||
response = requests.post(url, data=data,headers=headers)
|
||||
print(response.text)
|
||||
|
||||
# import pstats
|
||||
# import cProfile
|
||||
# def test_function():
|
||||
# url = "rtmp://rtmp03open.ys7.com:1935/v3/openlive/L05874022_1_1?expire=1726389273&id=625006970167889920&t=2c7f371063e4ad672cb7a7c34b2a236e9ff37b02052f818c9c4fe7ae9632cd0e&ev=100"
|
||||
# gen = worker(0,url,5)
|
||||
# count = 0
|
||||
# for data in gen:
|
||||
# count += 1
|
||||
# if count > 10:
|
||||
# break
|
||||
|
||||
if __name__ == '__main__':
|
||||
# cProfile.run('test_function()', 'test_function.profile')
|
||||
# p = pstats.Stats('test_function.profile')
|
||||
# p.sort_stats('cumulative').print_stats(100) # Top 10 by cumulative time
|
||||
app.run("0.0.0.0",threaded=True)
|
||||
|
|
Loading…
Reference in New Issue