forked from: trace current method

