You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 2654 Reporter: administrator Status: closed Resolution: fixed Priority: normal Severity: minor Category: ~DO NOT USE (was: OCaml general)
Original bug ID: 2654
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: Prakash Countcham
Version: 3.07+2
OS: Linux
Submission from: pc-atinf2.imag.fr (147.171.130.142)
The -p f option doesn't work in the last versions of ocamlcp.
e.g.:
$ ocamlcp -p f profil.ml
$ ./a.out
$ ocamlprof profil.ml
let f a b = a + b;;
let _ =
for i = 1 to 10 do
ignore (f 1 i)
done;;
It worked with some previous version. The same example in OCaml 3.04 gives the
right result :
let f a b = (* 10 *) a + b;;
let _ =
for i = 1 to 10 do
ignore (f 1 i)
done;;
TIA,
Prakash
The text was updated successfully, but these errors were encountered: