• Oran Agra's avatar
    Add Lua VM memory to memory overhead, now that it's part of zmalloc (#13660) · 79fd2558
    Oran Agra authored
    To complement the work done in #13133.
    it added the script VMs memory to be counted as part of zmalloc, but
    that means they
    should be also counted as part of the non-value overhead.
    
    this commit contains some refactoring to make variable names and
    function names less confusing.
    it also adds a new field named `script.VMs` into the `MEMORY STATS`
    command.
    
    additionally, clear scripts and stats between tests in external mode
    (which is related to how this issue was discovered)
    79fd2558
server.c 295 KB