public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Issue with gprof
@ 2007-06-26  2:00 Picque Sébastien
  2007-06-26  6:54 ` Gary Thomas
  0 siblings, 1 reply; 2+ messages in thread
From: Picque Sébastien @ 2007-06-26  2:00 UTC (permalink / raw)
  To: ecos-discuss

 
Hi,

I got a gmon.out from my target, but it seems to be impossible to extract the data.
he gmon.out is received via tftp.
When I run the command (under cygwin) : gprof gmon.out  
  result : gprof: gmon.out : not in a.out format 

What does it mean ?

gprof dhrystone

no such file or directory

Could somebody tell me what is wrong with it ? Moreover, by opening the gmon.out file (it looks to have almost every byte to  0)

Thanks



Regards,

Sebastien Picque

**********************************************************************
Embedded Software Engineer Consultant (Company Alten).
Phone number: + 32 (0)51 30 30 45 (poste 283).
*********************************************************************


--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ECOS] Issue with gprof
  2007-06-26  2:00 [ECOS] Issue with gprof Picque Sébastien
@ 2007-06-26  6:54 ` Gary Thomas
  0 siblings, 0 replies; 2+ messages in thread
From: Gary Thomas @ 2007-06-26  6:54 UTC (permalink / raw)
  To: Picque Sébastien; +Cc: ecos-discuss

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Picque Sébastien wrote:
>  
> Hi,
> 
> I got a gmon.out from my target, but it seems to be impossible to extract the data.
> he gmon.out is received via tftp.
> When I run the command (under cygwin) : gprof gmon.out  
>   result : gprof: gmon.out : not in a.out format 
> 
> What does it mean ?
> 
> gprof dhrystone
> 
> no such file or directory

Look at how to run 'gprof':
$ gprof -h
Usage: gprof [-[abcDhilLsTvwxyz]] [-[ACeEfFJnNOpPqQZ][name]] [-I dirs]
        [-d[num]] [-k from/to] [-m min-count] [-t table-length]
        [--[no-]annotated-source[=name]] [--[no-]exec-counts[=name]]
        [--[no-]flat-profile[=name]] [--[no-]graph[=name]]
        [--[no-]time=name] [--all-lines] [--brief] [--debug[=level]]
        [--function-ordering] [--file-ordering]
        [--directory-path=dirs] [--display-unused-functions]
        [--file-format=name] [--file-info] [--help] [--line] [--min-count=n]
        [--no-static] [--print-path] [--separate-files]
        [--static-call-graph] [--sum] [--table-length=len] [--traditional]
        [--version] [--width=n] [--ignore-non-functions]
        [--demangle[={none,auto,gnu,lucid,arm,hp,edg,gnu-v3,java,gnat,compaq}]]
        [--no-demangle] [--demangler=dso:function] [@FILE]
        [image-file] [profile-file...]

You need to provide it with both the executable program (eCos ELF application)
and the profile data.  Something like:

  $ gprof dhry gmon.out

Where 'dhry' is the name of the [ELF] program that you loaded and ran
on your platform, and 'gmon.out' is the profile result.

> 
> Could somebody tell me what is wrong with it ? Moreover, by opening the gmon.out file (it looks to have almost every byte to  0)

The 'gmon.out' file is just a histogram of your program's
execution.  Depending on how long it runs, the granularity
of your profile clock and how the profile was gathered (e.g.
the size of the "buckets"), you may see lots of 0's and only
a few values non-zero.  Get 'gprof' to work and then see what
you're getting out.

- --
- ------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
- ------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFGf9A0maKbSsQGV8ARAht7AKCcU8pEUIq4+pj5vdgk8SfhGm08LgCgn6ic
O8KquaDnxMm0Q+GhiYQCdJA=
=x9DZ
-----END PGP SIGNATURE-----

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-06-25 14:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-26  2:00 [ECOS] Issue with gprof Picque Sébastien
2007-06-26  6:54 ` Gary Thomas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).