Implementation of monitor/unmonitor command line APIs (only stack frames are missing)