bBox_ThreadInfo
Parameters: none Result: rows with information on current threads Error: none Script Step: none
First appeared in: 0.99
Examples in demo file: 1
Compatibility: Client, macOS, Server, Ubuntu, WebDirect, WPE
––––––––––
Returns CPU usage & settings of the threads in the process executing the function. For FileMaker Pro, that will be the application's process. On FMS using PSOS or script schedules this will be FMS script engine.
The first few lines of output on macOS will look like this:
Thread Count: 20
Thread #, Thread ID, CPU Usage %, Current Priority, Flags, Max Priority, Policy, Priority, Run State, Sleep Time, System Time (ns), User Time (ns), Thread Name
0, 632711, 4.50, 16, Active, 63, Standard, 16, Running, 0, 9807469000, 111641592000,
1, 632750, 0.00, 31, Swapped, 63, Standard, 31, Waiting, 0, 140047000, 139670000,
2, 632751, 0.00, 15, Swapped, 63, Standard, 15, Waiting, 0, 113648000, 113934000,
…
The last column, Thread Name, will often be blank. Ubuntu will return different values for each thread, but many overlap and are essentially the same.
––––––––––