Skip to content

Commit 2ad5e29

Browse files
committed
Follow-up on php#8914, usage comments addition.
1 parent 332ac8e commit 2ad5e29

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ext/opcache/jit/zend_jit_perf_dump.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,14 @@ static void zend_jit_perf_map_register(const char *name, void *start, size_t siz
279279
#include <os/log.h>
280280
#include <os/signpost.h>
281281

282+
/*
283+
* 1) To generate an Instrument tracing data:
284+
* xcrun xctrace record --template <Template name> --launch -- php
285+
* xcrun xctrace record --template Logging --launch -- php -dopcache.jit=1255 -dopcache.jit_debug=32 bench.php
286+
* 2) An instrument trace folder is created:
287+
* e.g. open Launch_php_2022-07-03_15.41.05_5F96D825.trace
288+
*/
289+
282290
static os_log_t jitdump_fd;
283291
static os_signpost_id_t jitdump_sp = OS_SIGNPOST_ID_NULL;
284292

0 commit comments

Comments
 (0)