caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Boris Yakobowski" <Boris.Yakobowski@ens-lyon.fr>
To: <caml-list@inria.fr>
Subject: RE : [Caml-list] Ocamldot for functions and types
Date: Fri, 15 Mar 2002 16:22:33 +0100	[thread overview]
Message-ID: <000c01c1cc35$3b1ffe50$b7804d8c@residence.enslyon.fr> (raw)
In-Reply-To: <000d01c1cc0e$75fd0850$0200a8c0@gateway>

> From : owner-caml-list@pauillac.inria.fr
[mailto:owner-caml-list@pauillac.inria.fr] De la part de Mattias Waldau
>
> Ocamldot can create a picture showing how ocaml files
> depend on each other.
>
> Is there a similar tool that shows how functions and
> types within a bigger program with many modules
> depend on each other?
>
> Or is there another internal representation
> where I can get that information? For example, 
> the infered internal types would also
> be interesting.

I'm having more or less the same kind of needs. I'm currently modifying
a big project, which I did not write in the first place, and in which
many functions are never used.  Unfortunately, all the modules are
linked since some of the functions of each module are used.

What would be perfect is a command-line option which tells me which
function of a module has never been used. I realize this might not be
easy because (for example) of functors. Another solutions would be to
print (during link phase) which functions are effectively called. That
way it would become possible to find out which are never used.

Since Caml is a project a bit too large to be understood in two or three
weeks, could someone give me some clues about which files I should look
into for that kind of modifications (I just want to put some
print_string at key points, I do not intend to make deep changes).


Boris Yakobowski

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


  parent reply	other threads:[~2002-03-15 15:22 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-14 14:47 [Caml-list] Profiling Andrew Birkett
2002-03-14 15:14 ` Markus Mottl
2002-03-14 15:13   ` Georges Mariano
2002-03-15 10:15     ` Markus Mottl
2002-03-15 10:45       ` [Caml-list] Ocamldot for functions and types Mattias Waldau
2002-03-15 11:10         ` Daniel de Rauglaudre
2002-03-15 15:22         ` Boris Yakobowski [this message]
2002-03-14 15:46   ` [Caml-list] Profiling Andrew Birkett
2002-03-14 16:09     ` David Monniaux
2002-03-23 22:48     ` David MENTRE
2002-03-14 16:54 ` Remi VANICAT

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='000c01c1cc35$3b1ffe50$b7804d8c@residence.enslyon.fr' \
    --to=boris.yakobowski@ens-lyon.fr \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 NNTP newsgroup(s).