Skip to content
  • Sebastian Ohlmann's avatar
    Replace profiling_out calls · d66cfb7e
    Sebastian Ohlmann authored and Martin Lueders's avatar Martin Lueders committed
    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.
    d66cfb7e