]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
More stuff for qcvm -info
authorWolfgang Bumiller <blub@speed.at>
Sat, 22 Dec 2012 22:30:52 +0000 (23:30 +0100)
committerWolfgang Bumiller <blub@speed.at>
Sat, 22 Dec 2012 22:30:52 +0000 (23:30 +0100)
exec.c

diff --git a/exec.c b/exec.c
index f4a986ed8e6cb2e2def9b3ac73086070e8c5cc9f..6a94941b4194bbdceac4fe0e2e8192f3fea19508 100644 (file)
--- a/exec.c
+++ b/exec.c
@@ -976,6 +976,17 @@ int main(int argc, char **argv)
         printf("Program's system-checksum = 0x%04x\n", (unsigned int)prog->crc16);
         printf("Entity field space: %u\n", (unsigned int)prog->entityfields);
         printf("Globals: %u\n", (unsigned int)vec_size(prog->globals));
+        printf("Counts:\n"
+               "      code: %lu\n"
+               "      defs: %lu\n"
+               "    fields: %lu\n"
+               " functions: %lu\n"
+               "   strings: %lu\n",
+               (unsigned long)vec_size(prog->code),
+               (unsigned long)vec_size(prog->defs),
+               (unsigned long)vec_size(prog->fields),
+               (unsigned long)vec_size(prog->functions),
+               (unsigned long)vec_size(prog->strings));
     }
 
     if (opts_info) {