Skip to content

Instantly share code, notes, and snippets.

@gatoatigrado
Created December 23, 2017 20:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gatoatigrado/6fc0cc7dcac58ef759aa8d2cce17b3e9 to your computer and use it in GitHub Desktop.
Save gatoatigrado/6fc0cc7dcac58ef759aa8d2cce17b3e9 to your computer and use it in GitHub Desktop.
Running gprof on RawTherapee
oliver:/tmp> gprof $(which rawtherapee-cli) gmon.out | head -20
Flat profile:
Each sample counts as 0.01 seconds.
% cumulative self self total
time seconds seconds calls s/call s/call name
25.57 1.45 1.45 318 0.00 0.00 rtengine::RawImageSource::amaze_demosaic_RT(int, int, int, int, array2D<float>&, array2D<float>&, array2D<float>&, array2D<float>&)
22.58 2.73 1.28 1 1.28 1.28 rtengine::ImProcFunctions::rgbProc(rtengine::Imagefloat*, rtengine::LabImage*, rtengine::PipetteBuffer*, LUT<float>&, LUT<float>&, LUT<float>&, rtengine::SHMap*, int, LUT<float>&, LUT<float>&, LUT<float>&, float, float, rtengine::ColorGradientCurve const&, rtengine::OpacityCurve const&, bool, LUT<float>&, LUT<float>&, rtengine::ToneCurve const&, rtengine::ToneCurve const&, rtengine::ToneCurve const&, rtengine::ToneCurve const&, double&, double&, double&, float&, float&, float&, double, int, int, rtengine::DCPProfile*, rtengine::DCPProfile::ApplyState const&, LUT<unsigned int>&)
11.99 3.41 0.68 1 0.68 0.71 rtengine::ImProcFunctions::chromiLuminanceCurve(rtengine::PipetteBuffer*, int, rtengine::LabImage*, rtengine::LabImage*, LUT<float>&, LUT<float>&, LUT<float>&, LUT<float>&, LUT<float>&, LUT<float>&, bool, bool, bool, bool, bool, bool, LUT<unsigned int>&, LUT<unsigned int>&)
8.64 3.90 0.49 1 0.49 0.49 rtengine::RawImageSource::findHotDeadPixels(rtengine::PixelsMap&, float, bool, bool)
5.82 4.23 0.33 1 0.33 0.33 rtengine::RawImageSource::CA_correct_RT(bool, double, double, double, array2D<float>&)
4.23 4.47 0.24 1 0.24 0.24 rtengine::Image16::ExecCMSTransform(void*, rtengine::LabImage const&, int, int)
3.00 4.64 0.17 1 0.17 0.21 rtengine::RawImageSource::getImage(rtengine::ColorTemp const&, int, rtengine::Imagefloat*, PreviewProps const&, rtengine::procparams::ToneCurveParams const&, rtengine::procparams::RAWParams const&)
2.47 4.78 0.14 1 0.14 0.14 DCraw::sony_arw2_load_raw()
2.12 4.90 0.12 36122848 0.00 0.00 float rtengine::procparams::Threshold<int>::multiply<float, float, float>(float, float) const
1.59 4.99 0.09 1 0.09 0.09 rtengine::RawImageSource::colorSpaceConversion_(rtengine::Imagefloat*, rtengine::procparams::ColorManagementParams&, rtengine::ColorTemp const&, double*, void*, void*, double (*) [3], std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
1.41 5.07 0.08 1 0.08 0.08 gaussianBlur(float**, float**, int, int, double, float*, eGaussType, float**)
1.41 5.15 0.08 1 0.08 0.28 rtengine::ImProcFunctions::sharpening(rtengine::LabImage*, float**, rtengine::procparams::SharpeningParams&)
1.41 5.23 0.08 1 0.08 0.08 rtengine::ImProcFunctions::firstAnalysis(rtengine::Imagefloat const*, rtengine::procparams::ProcParams const&, LUT<unsigned int>&)
1.23 5.30 0.07 1 0.07 0.08 DCraw::crop_masked_pixels()
1.06 5.36 0.06 1 0.06 0.06 rtengine::RawImageSource::scaleColors(int, int, int, int, rtengine::procparams::RAWParams const&, array2D<float>&)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment