4 #define FACTOR_PROFILE_SAMPLES_PER_SECOND 1000
6 struct profiling_sample
8 // Number of samples taken before the safepoint that recorded the sample
10 // Number of samples taken during GC
12 // Number of samples taken during foreign code execution
13 cell foreign_sample_count;
14 // Number of samples taken during code execution in non-Factor threads
15 cell foreign_thread_sample_count;
16 // Active context during sample
18 /* The callstack at safepoint time. Indexes to the beginning and ending
19 code_block entries in the vm sample_callstacks array. */
20 cell callstack_begin, callstack_end;
22 profiling_sample(factor_vm *vm,
25 cell foreign_sample_count,
26 cell foreign_thread_sample_count,