-
Use `sed "/profiling_in/ {x;G;s/^\n*\(.*\n\)*.*profiling_in(\([^,]*\)\(,\|)\).*/\1\2/;x}; /profiling_out/ {x;H;s/^\(.*\n\)*\([^\n]*\)$/\1/;s/\n$//;x;s/^\(.*profiling_out(\).*).*\n\([^\n]*\)$/\1\2)/}" -i */^profiling*` This uses the hold buffer as a stack of names to get nested profiling calls correct.
d66cfb7eUse `sed "/profiling_in/ {x;G;s/^\n*\(.*\n\)*.*profiling_in(\([^,]*\)\(,\|)\).*/\1\2/;x}; /profiling_out/ {x;H;s/^\(.*\n\)*\([^\n]*\)$/\1/;s/\n$//;x;s/^\(.*profiling_out(\).*).*\n\([^\n]*\)$/\1\2)/}" -i */^profiling*` This uses the hold buffer as a stack of names to get nested profiling calls correct.
Loading