aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorcoqbot-app[bot]2021-03-23 20:38:58 +0000
committerGitHub2021-03-23 20:38:58 +0000
commit285d5e03a230af7b327cba0b7720217ede664761 (patch)
treed8f3bcac6bce50f5235e5416c7504b1b722a7848 /lib
parentd3f78cad1532f000106ed0c0b8be2ac384ce1d3a (diff)
parent01b061f0082a70f66016e78075a5952af8ed5431 (diff)
Merge PR #13978: Do not match on record types with mutable fields in function arguments.
Reviewed-by: gares
Diffstat (limited to 'lib')
-rw-r--r--lib/cProfile.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cProfile.ml b/lib/cProfile.ml
index a4f2da7080..b68d35d2d4 100644
--- a/lib/cProfile.ml
+++ b/lib/cProfile.ml
@@ -285,7 +285,7 @@ let format_profile (table, outside, total) =
Printf.printf
"%-23s %9s %9s %10s %10s %10s\n"
"Function name" "Own time" "Tot. time" "Own alloc" "Tot. alloc" "Calls ";
- let l = List.sort (fun (_,{tottime=p}) (_,{tottime=p'}) -> p' - p) table in
+ let l = List.sort (fun p p' -> (snd p').tottime - (snd p).tottime) table in
List.iter (fun (name,e) ->
Printf.printf
"%-23s %9.2f %9.2f %10.0f %10.0f %6d %6d\n"