예제 #1
0
파일: appweb.c 프로젝트: doghell/appweb-4
/*
    SIGINFO will dump memory stats
    For detailed memory stats, use: ./configure --set memoryCheck=true
 */
static void statusCheck(void *ignored, MprSignal *sp)
{
    mprRequestGC(MPR_GC_COMPLETE);
    mprRawLog(0, "%s", httpStatsReport(0));
    if (MPR->heap->track) {
        mprPrintMem("", 1);
    }
}
예제 #2
0
파일: ejsGC.c 프로젝트: monmarzia/ejs-2
/*
    run(deep: Boolean = false)
    TODO -- change args to be a string "check", "all"
 */
static EjsObj *gc_run(Ejs *ejs, EjsObj *thisObj, int argc, EjsObj **argv)
{
    int     deep;

    assure(!ejs->state->paused);
    
    if (!ejs->state->paused) {
        deep = ((argc == 1) && ejsIs(ejs, argv[1], Boolean));
        mprRequestGC(MPR_FORCE_GC | (deep ? MPR_COMPLETE_GC : 0));
    }
    return 0;
}