MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / sqlite3MemTraceActivate

Function sqlite3MemTraceActivate

modules/dasSQLITE/sqlite/shell.c:1609–1619  ·  view source on GitHub ↗

Begin tracing memory allocations to out. */

Source from the content-addressed store, hash-verified

1607
1608/* Begin tracing memory allocations to out. */
1609int sqlite3MemTraceActivate(FILE *out){
1610 int rc = SQLITE_OK;
1611 if( memtraceBase.xMalloc==0 ){
1612 rc = sqlite3_config(SQLITE_CONFIG_GETMALLOC, &memtraceBase);
1613 if( rc==SQLITE_OK ){
1614 rc = sqlite3_config(SQLITE_CONFIG_MALLOC, &ersaztMethods);
1615 }
1616 }
1617 memtraceOut = out;
1618 return rc;
1619}
1620
1621/* Deactivate memory tracing */
1622int sqlite3MemTraceDeactivate(void){

Callers 1

wmainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected