[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Profiling C++ code in oct files
From: |
Daniel Kraft |
Subject: |
Re: Profiling C++ code in oct files |
Date: |
Thu, 09 May 2013 09:38:40 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi!
On 08/05/13 16:21, Jordi GutiƩrrez Hermoso wrote:
> On 8 May 2013 07:20, Daniel Kraft <address@hidden> wrote:
>> Is there a way to profile C++ code in .oct files? I tried
>> passing CXXFLAGS="-pg <and standard ones>" to mkoctfile, but this
>> is seemingly not enough. Executing the resulting .oct file
>> through Octave doesn't produce a gmon.out.
>
> There is an alternative to gprof that doesn't require
> instrumenting the code: oprof. I don't find it very easy to use, it
> only works on Linux, and you require root privileges to use it.
> I've used it a few times for successfully profiling C++ code, not
> just Octave's
Thanks for the hint -- so far I've only ever used gprof, but I'll give
oprof a try and see if it works. I'm on GNU/Linux anyway, so that
shouldn't be a problem (and also have root privileges on the machine
I'm using).
Yours,
Daniel
- --
http://www.domob.eu/
OpenPGP: 901C 5216 0537 1D2A F071 5A0E 4D94 6EED 04F7 CF52
- --
Done: Arc-Bar-Cav-Hea-Kni-Ran-Rog-Sam-Tou-Val-Wiz
To go: Mon-Pri
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQIcBAEBAgAGBQJRi1KAAAoJEE2Ubu0E989S3rQQAMbyq0xBl95Q6+NIWov0/wEf
SGP5VqXtO6w8Rw/vzqIfHryTPAI/x6qeek7UxT++8YABznNKVcRBYa6EW2htO3IU
KTmx1aopkUUVld5rbzjQEhqQNATmZwLReiLDI8FxE8wVqob6jk4NGwQHmS+jSuST
/cDfms8CNLk0fk3VduXERQiLUZv1a4xxnCAFIsza/kr868cY+UgxMpyaYWhAMOEy
/pkF77Y+eb1XVImOUBVlmErGUqNx9bm6mnA3MePgEjJdCEBca3YXrVqTqlm4hkzp
BRO0T8PbNT/80fDFdnHrDvamRtPJNxjDS9SKQjIENN/Q7ymCXzjPE325nme7bmRP
94mI0nl8Zv+BcAWsX9mdiwO06vg5wVpZ5Y6Xqc/GhpbWWOcPj3ecnz/41TVy6Yxb
u5wZtuwR0OxnUzVxRd5OtYDOe5oP/gBeKnYmuIk1BFybrwt5rjo+NcHmILpQznvD
xI5bOa6hO6r2hYJB3u/yNaMejwwhm4muQ+X5qo2bIWJHi1w9bTkEXVPivzAhy0Kq
ylryxSVP4OzglHpYn5WcTmsXcwq4AmN+DhQkaD83KgL/n+83HrjqwxMqhprEqpZk
LOPXUQYep3uft3+TVGDZ0w13V02u1DWpMadPDVZr3rGIHnJSDQZSByC+0oSLyITZ
3x7ZaNzp5g+YP3dvP+nI
=E9Zw
-----END PGP SIGNATURE-----
smime.p7s
Description: S/MIME Cryptographic Signature