@@ -1151,6 +1151,7 @@ String function cmd_model_delete(user_id : String, model_name : String):
String function cmd_model_list():
// List all models
+ log("Start model list @ " + cast_v2s(time()))
Element models
String result
String m
@@ -1160,7 +1161,7 @@ String function cmd_model_list():
while (read_nr_out(models) > 0):
m = set_pop(models)
result = (result + string_join((string_join(" ", read_attribute(core, m, "name")) + " : "), read_attribute(core, set_pop(allAssociationDestinations(core, m, "instanceOf")), "name"))) + "\n"
-
+ log("Finish model list @ " + cast_v2s(time()))
return result!
String function cmd_model_list_full():
@@ -0,0 +1,13 @@
+from modelverse import *
+import time
+import sys
+import random
+
+init()
+login(str(random.random()), str(random.random()))
+for _ in range(10):
+ print("START @ " + str(time.time()))
+ model_list()
+ print("END @ " + str(time.time()))
+ sys.stdout.flush()