Watch the handle_call
callback for the file_server
module only in the file_server_2
process.
Output a report every second, if there was any activity to report for that time interval.
accumulating_time_tracer:start([whereis(file_server_2)], [{file_server, handle_call, 3}], 1000).
Some output from my MBP on a Bitcask-based Riak node that is configured to do a lot of Bitcask merges a lot of the time.
15,59,26} MFA {<0.24.0>,{file_server,handle_call,3}} count 1128 elapsed_msec 755
{15,59,27} MFA {<0.24.0>,{file_server,handle_call,3}} count 316 elapsed_msec 128
{15,59,28} MFA {<0.24.0>,{file_server,handle_call,3}} count 183 elapsed_msec 179
{15,59,29} MFA {<0.24.0>,{file_server,handle_call,3}} count 1014 elapsed_msec 611
{15,59,30} MFA {<0.24.0>,{file_server,handle_call,3}} count 3527 elapsed_msec 876
{15,59,31} MFA {<0.24.0>,{file_server,handle_call,3}} count 4102 elapsed_msec 863
{15,59,32} MFA {<0.24.0>,{file_server,handle_call,3}} count 5589 elapsed_msec 867
{15,59,33} MFA {<0.24.0>,{file_server,handle_call,3}} count 1526 elapsed_msec 638
{15,59,34} MFA {<0.24.0>,{file_server,handle_call,3}} count 5640 elapsed_msec 875
{15,59,35} MFA {<0.24.0>,{file_server,handle_call,3}} count 6550 elapsed_msec 862
{15,59,36} MFA {<0.24.0>,{file_server,handle_call,3}} count 2239 elapsed_msec 887