>> > > cg_annotate is the tool for cachegrind output.
>> > > The naming is a little bit unfortunate.
>> > Definitely. How about renaming cg_annotate to cachegrind_annotate?

With the introduction of the gdbserver in Valgrind (3.7.0 svn), the
'cg' prefix (for cachegrind) versus 'ct' prefix (for callgrind) is also
visible in the gdbserver monitor commands.

E.g. to ask callgrind to do a dump, the following is done from gdb:
  (gdb) monitor ct.dump
or from a shell:
  vgdb ct.dump
So, as you see, for callgrind, we need to type prefix 'ct'.

The above naming schema is based on:
  * gdb will complete its "own" command (e.g. mo <tab> will be completed to 
monitor)
    but gdb can't complete what follows monitor.
  * the "two letters" code of a tool was used as a short unambiguous prefix.
    Currently, we have:
      memcheck  => mc
      massif    => ms
      callgrind => ct     (this comes from the old "calltree" callgrind name)
    Following the same logic, if we would have monitor commands for cachegrind,
    they would start with cg. (there are no cachegrind monitor command at this 
stage).

Changing in gdbserver the two letters for callgrind is very easy at this stage
(as nobody is yet depending on these letters, it is only in Valgrind svn 3.7.0).

But if we better change these, what should these 2 letters be ?


Philippe


____
 
This message and any files transmitted with it are legally privileged and 
intended for the sole use of the individual(s) or entity to whom they are 
addressed. If you are not the intended recipient, please notify the sender by 
reply and delete the message and any attachments from your system. Any 
unauthorised use or disclosure of the content of this message is strictly 
prohibited and may be unlawful.
 
Nothing in this e-mail message amounts to a contractual or legal commitment on 
the part of EUROCONTROL, unless it is confirmed by appropriately signed hard 
copy.
 
Any views expressed in this message are those of the sender.

------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to