Browse thread
[Caml-list] Profiling and classes
- Alessandro Baretta
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Alessandro Baretta <alex@b...> |
| Subject: | [Caml-list] Profiling and classes |
If I use ocamlcp to attempt to profile the execution of a caml program with classes, I get a syntax error. This is the piece of code generated by ocamlcp where the syntax error comes up: class environment (env:env) = object (__ocaml_prof_cnt_xcaml_session_.(5) <- Pervasives.succ __ocaml_prof_cnt_xcaml_session_.(5); method getvar varname = .... I wonder if it makes any sense for ocamlprof to add such initialization code as this before a method definition, using the sequence operator ";". Does ocamlcp not know about initializer methods? Or am I doing something wrong? Alex ------------------- 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