From: Wolfgang Bumiller Date: Sat, 22 Dec 2012 22:30:52 +0000 (+0100) Subject: More stuff for qcvm -info X-Git-Tag: 0.2~12^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9d54ea6b0c18b6f0bcfd5db5f1184f9fac1d08e0;p=xonotic%2Fgmqcc.git More stuff for qcvm -info --- diff --git a/exec.c b/exec.c index f4a986e..6a94941 100644 --- 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) {