Skip to content

Commit aaedf19

Browse files
committed
Fix syntax highlighting
1 parent a18843d commit aaedf19

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

Doc/whatsnew/3.15.rst

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,23 +95,33 @@ 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 process 1234 for 10 seconds with default settings::
98+
Profile process 1234 for 10 seconds with default settings:
99+
100+
.. code-block:: shell
99101
100102
python -m profiling.sampling 1234
101103
102-
Profile with custom interval and duration, save to file::
104+
Profile with custom interval and duration, save to file:
105+
106+
.. code-block:: shell
103107
104108
python -m profiling.sampling -i 50 -d 30 -o profile.stats 1234
105109
106-
Generate collapsed stacks for flamegraph::
110+
Generate collapsed stacks for flamegraph:
111+
112+
.. code-block:: shell
107113
108114
python -m profiling.sampling --collapsed 1234
109115
110-
Profile all threads and sort by total time::
116+
Profile all threads and sort by total time:
117+
118+
.. code-block:: shell
111119
112120
python -m profiling.sampling -a --sort-tottime 1234
113121
114-
The profiler generates statistical estimates of where time is spent::
122+
The profiler generates statistical estimates of where time is spent:
123+
124+
.. code-block:: text
115125
116126
Real-time sampling stats: Mean: 100261.5Hz (9.97µs) Min: 86333.4Hz (11.58µs) Max: 118807.2Hz (8.42µs) Samples: 400001
117127
Captured 498841 samples in 5.00 seconds

0 commit comments

Comments
 (0)