[
https://issues.apache.org/jira/browse/MESOS-1213?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13973570#comment-13973570
]
james michael dupont commented on MESOS-1213:
---------------------------------------------
So I have made progress on this.
Updated the readme with some basic instructions and stats for now :
Profiling
./bootstrap
Enable gprof (and gcov) ./configure --enable_gprof=yes
make
make check
run the test
./src/mesos-tests
use gcov from src
cd src
collect output with xargs and send to gcov
find -name \*.gcno | xargs gcov
You will see currently that only 78% is executed:
Lines executed:77.62% of 28906
Running gprof will show you the stats, but do that to the libtool binary gprof
./.libs/mesos-tests
It will show you the top functions where time is spent, for example :
% cumulative self self total
time seconds seconds calls ms/call ms/call name
14.10 0.11 0.11 260182 0.00 0.00
boost::uuids::detail::sha1::process_block()
7.69 0.17 0.06 14066728 0.00 0.00
boost::uuids::detail::sha1::process_byte(unsigned char)
7.69 0.23 0.06 171753 0.00 0.00 std::string
stringify<int>(int)
5.13 0.27 0.04 130762 0.00 0.00
boost::uuids::detail::seed_rng::sha1_random_digest_()
4.49 0.31 0.04 44383 0.00 0.00
process::internal::release(int*)
3.85 0.34 0.03 84876 0.00 0.00 os::process(int)
2.56 0.36 0.02 170519 0.00 0.00 Try<Duration>::get() const
2.56 0.38 0.02 85252 0.00 0.00 proc::status(int)
> --enable-gprof
> --------------
>
> Key: MESOS-1213
> URL: https://issues.apache.org/jira/browse/MESOS-1213
> Project: Mesos
> Issue Type: Improvement
> Components: build
> Affects Versions: 0.19.0
> Reporter: james michael dupont
> Assignee: james michael dupont
> Priority: Minor
>
> We need a simple way to build with gprof support.
> Starting a patch here :
> https://github.com/h4ck3rm1k3/mesos/tree/gprof
--
This message was sent by Atlassian JIRA
(v6.2#6252)