./pfDeconv_prof -ref tests/PG0390_ref.txt -alt tests/PG0390_alt.txt -plaf tests/labStrains_samples_PLAF.txt -panel tests/clonalPanel.csv -o tmp1
gprof ./pfDeconv_prof gmon.out | less
Flat profile:
Each sample counts as 0.01 seconds.
% cumulative self self total
time seconds seconds calls s/call s/call name
19.51 26.00 26.00 316068221 0.00 0.00 Maths::Special::Gamma::log_gamma(double)
9.88 39.17 13.17 316068221 0.00 0.00 Maths::Special::Gamma::logGammaFrac(double, double)
8.15 50.03 10.86 3380 0.00 0.01 UpdatePairHap::calcFwdProbs()
7.38 59.87 9.84 486419899 0.00 0.00 Maths::Algebra::Series::bcorr(double, double)
4.41 65.75 5.88 809837860 0.00 0.00 sumOfMat(std::vector<std::vector<double, std::allocator<double> >, std::allocator<std::vector<double, std::allocator<double> > > >
&)
3.59 70.53 4.78 3380 0.00 0.00 UpdatePairHap::buildEmission()
3.29 74.92 4.39 802488120 0.00 0.00 Maths::Special::Gamma::logBeta(double, double)
3.11 79.07 4.15 3380 0.00 0.00 UpdatePairHap::samplePaths()
3.00 83.06 4.00 802488120 0.00 0.00 Maths::Arithmetic::ln_add1(double)
2.95 87.00 3.94 57848700 0.00 0.00 normalizeBySumMat(std::vector<std::vector<double, std::allocator<double> >, std::allocator<std::vector<double, std::allocator<doubl
e> > > >&)
2.87 90.82 3.83 803480970 0.00 0.00 void std::vector<unsigned long, std::allocator<unsigned long> >::_M_emplace_back_aux<unsigned long const&>(unsigned long const&)
2.81 94.58 3.75 173705892 0.00 0.00 void std::vector<std::vector<double, std::allocator<double> >, std::allocator<std::vector<double, std::allocator<double> > > >::_M
_emplace_back_aux<std::vector<double, std::allocator<double> > const&>(std::vector<double, std::allocator<double> > const&)
2.59 98.03 3.45 229097319 0.00 0.00 UpdateHap::sampleNoReplace(std::vector<double, std::allocator<double> >, unsigned long)
2.55 101.42 3.40 77428 0.00 0.00 std::vector<double, std::allocator<double> > vecSum<double>(std::vector<double, std::allocator<double> >&, std::vector<double, std:
:allocator<double> >&)
2.47 104.72 3.30 514338525 0.00 0.00 normalizeBySum(std::vector<double, std::allocator<double> >&)
2.30 107.78 3.06 574958028 0.00 0.00 void std::vector<double, std::allocator<double> >::_M_emplace_back_aux<double const&>(double const&)
1.52 109.81 2.03 916596940 0.00 0.00 sumOfVec(std::vector<double, std::allocator<double> >&)
1.47 111.76 1.96 10002 0.00 0.00 McmcMachinery::calcExpectedWsaf(std::vector<double, std::allocator<double> >&)
1.46 113.70 1.94 3380 0.00 0.00 UpdatePairHap::addMissCopying()
1.46 115.64 1.94 229100699 0.00 0.00 computeCdf(std::vector<double, std::allocator<double> >&)
1.33 117.41 1.77 3302 0.00 0.00 UpdateSingleHap::buildEmission()
1.26 119.09 1.68 57845320 0.00 0.00 UpdatePairHap::computeColMarginalDist(std::vector<std::vector<double, std::allocator<double> >, std::allocator<std::vector<double,
std::allocator<double> > > >&)
1.10 120.56 1.47 229093939 0.00 0.00 UpdateHap::sampleIndexGivenProp(std::vector<double, std::allocator<double> >)
0.98 121.87 1.31 3302 0.00 0.00 UpdateSingleHap::addMissCopying()
0.98 123.17 1.30 3302 0.00 0.00 UpdateSingleHap::samplePaths()
0.95 124.44 1.27 3302 0.00 0.00 UpdateSingleHap::calcFwdProbs()
0.95 125.70 1.26 229199595 0.00 0.00 std::mersenne_twister_engine<unsigned long, 64ul, 312ul, 156ul, 31ul, 13043109905998158313ul, 29ul, 6148914691236517205ul, 17ul, 8
202884508482404352ul, 37ul, 18444473444759240704ul, 43ul, 6364136223846793005ul>::operator()()
0.94 126.95 1.25 229199595 0.00 0.00 MersenneTwister::sample()
0.83 128.06 1.11 401244060 0.00 0.00 calcLLK(double, double, double, double, double)
0.76 129.07 1.01 23444 0.00 0.00 calcLLKs(std::vector<double, std::allocator<double> >&, std::vector<double, std::allocator<double> >&, std::vector<double, std::all
ocator<double> >&)
0.62 129.89 0.82 54080 0.00 0.00 void std::vector<std::vector<std::vector<double, std::allocator<double> >, std::allocator<std::vector<double, std::allocator<double
> > > >, std::allocator<std::vector<std::vector<double, std::allocator<double> >, std::allocator<std::vector<double, std::allocator<double> > > > > >::_M_emplace_back_aux<std::vector<st
d::vector<double, std::allocator<double> >, std::allocator<std::vector<double, std::allocator<double> > > > const&>(std::vector<std::vector<double, std::allocator<double> >, std::alloca
tor<std::vector<double, std::allocator<double> > > > const&)