6 * Do a memory scan and collect information about allocated objects
8 * @return Array - an Array of (object allocation datas) as well as
9 * It is possible for the output of this function to change in the near
10 * future. If so, it will be documented.
13 type ObjprofPathsStats
= shape(
16 'path' => array<string>,
19 type ObjprofObjectStats
= shape(
22 'paths' => ObjprofPathsStats
,
25 type ObjprofStringStats
= shape(
33 function objprof_get_data(
34 int $flags = OBJPROF_FLAGS_DEFAULT
,
35 array $exclude_list = array(),
36 ): array<string, ObjprofObjectStats
>;
39 function objprof_get_strings(int $min_dup): array<string, ObjprofStringStats
>;
42 function objprof_get_paths(
43 int $flags = OBJPROF_FLAGS_DEFAULT
,
44 array $exclude_list = array(),
45 ): array<string, ObjprofObjectStats
>;
48 function thread_memory_stats(): array<string, int>;
51 function thread_mark_stack(): void
;
54 function set_mem_threshold_callback(int $threshold, mixed $callback): void
;