Skip to content

Commit c28b0e0

Browse files
committed
Add what's new 2
1 parent fe12677 commit c28b0e0

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

Doc/whatsnew/3.15.rst

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff 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

110114
The profiler generates statistical estimates of where time is spent::
111115

0 commit comments

Comments
 (0)