Using lprof to profile monitors