Skip to content

Commit c10f45d

Browse files
committed
Revert "[3.15] gh-154060: Fix the Profile Stats offsets in the profiling binary format docs and a missing flag (GH-157871) (#158855)"
This reverts commit 6dfba4d.
1 parent fc324bd commit c10f45d

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎InternalDocs/profiling_binary_format.md‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ The file consists of five required sections and one optional extension:
4747
| String Table | Variable size
4848
+------------------+ frame_table_offset
4949
| Frame Table | Variable size
50-
+------------------+ file_size - 88 (when stats are present)
51-
| Profile Stats | 56 bytes (optional)
50+
+------------------+ file_size - 64 (when stats are present)
51+
| Profile Stats | 32 bytes (optional)
5252
+------------------+ file_size - 32
5353
| Footer | 32 bytes (fixed)
5454
+------------------+ file_size
@@ -220,7 +220,6 @@ The status byte is a bitfield encoding thread state at sample time:
220220
| 2 | THREAD_STATUS_UNKNOWN | Thread state could not be determined |
221221
| 3 | THREAD_STATUS_GIL_REQUESTED | Thread is waiting to acquire the GIL |
222222
| 4 | THREAD_STATUS_HAS_EXCEPTION | Thread has a pending exception |
223-
| 5 | THREAD_STATUS_MAIN_THREAD | Thread is the interpreter's main thread |
224223

225224
Multiple flags can be set simultaneously (e.g., a thread can hold the GIL
226225
while also running on CPU). Analysis tools use these to filter samples or

0 commit comments

Comments
 (0)