UNPKG

aws-crt

Version:

NodeJS/browser bindings to the aws-c-* libraries

23 lines (22 loc) 712 B
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ /** * If the ```AWS_CRT_MEMORY_TRACING``` is environment variable is set to 1 or 2, * will return the native memory usage in bytes. Otherwise, returns 0. * @returns The total allocated native memory, in bytes. * * @module aws-crt * @category System */ export declare function native_memory(): number; /** * Dumps outstanding native memory allocations. If the ```AWS_CRT_MEMORY_TRACING``` * environment variable is set to 1 or 2, will dump all active native memory to * the console log. * * @module aws-crt * @category System */ export declare function native_memory_dump(): void;