status.aliases Map.empty
let alias_diff =
- let profiler = CicUtil.profile "accusato" in
+ let profiler = CicUtil.profile "alias_diff (conteggiato anche in include)" in
fun ~from status -> profiler.CicUtil.profile (alias_diff ~from) status
let set_proof_aliases status aliases =
[bodyuri, xmlbodypath]
| _-> assert false)
+let typecheck_obj =
+ let profiler = CicUtil.profile "add_obj.typecheck_obj" in
+ fun uri obj -> profiler.CicUtil.profile (CicTypeChecker.typecheck_obj uri) obj
+
let add_obj uri obj status =
let dbd = MatitaDb.instance () in
let suri = UriManager.string_of_uri uri in
if CicEnvironment.in_library uri then
command_error (sprintf "%s already defined" suri)
else begin
- CicTypeChecker.typecheck_obj uri obj; (* 1 *)
+ typecheck_obj uri obj; (* 1 *)
try
MetadataDb.index_obj ~dbd ~uri; (* 2 must be in the env *)
try