aa_used_application_memory (private)

 aa_used_application_memory

Defined in packages/acs-automated-testing/tcl/aa-test-procs.tcl

Return the currently used application memory. This function depends on the usage of TCMalloc from Google Performance Tools.

Partial Call Graph (max 5 caller/called nodes):
%3 aa_check_leftovers aa_check_leftovers (public) aa_used_application_memory aa_used_application_memory aa_check_leftovers->aa_used_application_memory acs::icanuse acs::icanuse (public) aa_used_application_memory->acs::icanuse

Testcases:
No testcase defined.
Source code:
    if {[::acs::icanuse "ns_info meminfo"]} {
        set mem_info [ns_info meminfo] 
        dict with mem_info {
            # check for a line looking in the TCMalloc result like:
            #
            #   MALLOC:     2531634144 ( 2414.4 MiB) Bytes in use by application
            #
            if {[info exists stats] && [regexp {\nMALLOC:\s+(\d+)\s} $stats . bytes]} {
                set old_value [nsv_set -reset aa_test application_memory $bytes]
                if {$old_value ne ""} {
                    return [list current $bytes diff [expr {$bytes - $old_value}]]
                }
            }
        }
    }
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: