File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -95,17 +95,21 @@ Key features include:
9595* **Multiple output formats **: Generate both detailed statistics and flamegraph data
9696* **Thread-aware profiling **: Option to profile all threads or just the main thread
9797
98- Profile an existing process for 10 seconds::
98+ Profile process 1234 for 10 seconds with default settings ::
9999
100- python -m profile.sample 1234
100+ python -m profile.sample 1234
101101
102- Profile with custom settings and real-time statistics ::
102+ Profile with custom interval and duration, save to file ::
103103
104- python -m profile.sample --realtime-stats - i 50 -d 30 1234
104+ python -m profile.sample -i 50 -d 30 -o profile.stats 1234
105105
106- Generate flamegraph data ::
106+ Generate collapsed stacks for flamegraph ::
107107
108- python -m profile.sample --collapsed -o stacks.txt 1234
108+ python -m profile.sample --collapsed 1234
109+
110+ Profile all threads and sort by total time::
111+
112+ python -m profile.sample -a --sort-tottime 1234
109113
110114The profiler generates statistical estimates of where time is spent::
111115
You can’t perform that action at this time.
0 commit comments