Exemple #1
0
static int log_stat_timer(int msgid, void *userdata){
    bbuf_stat();
    rbuf_stat();
    port_stat();
    pbc_stat();
    timer_stat();
    LOG_STAT("==========LOG==========");
    LOG_STAT("error:(%d), warning:(%d)", s_error_counter, s_warning_counter);
    
    LOG_STAT("==========LUA==========");
    LOG_STAT("memory:(%dk) stack top(%d)", lua_gc(L, LUA_GCCOUNT, 0), lua_gettop(L));

    LOG_STAT("==========MEM==========");
    //LOG_STAT("used:%dk rss:%dk", zmalloc_used_memory()/1024, zmalloc_get_rss()/1024);

    return 1;
}
Exemple #2
0
BVH::BVH(std::vector<FastBVH::Object*>* objects, uint32_t leafSize)
  : nNodes(0), nLeafs(0), leafSize(leafSize), build_prims(objects), flatTree(NULL) {
    Stopwatch sw;

    // Build the tree based on the input object data set.
    build();

    // Output tree build time and statistics
    double constructionTime = sw.read();
    LOG_STAT("Built BVH (%d nodes, with %d leafs) in %d ms", nNodes, nLeafs, (int)(1000*constructionTime));
  }
ExportDicomDir::ExportDicomDir(wxWindow* pParent, const TIDList& pks): ExportDicomBase(pParent)
{
        LOG_STAT(ANON_STAT_DLG_DICOM_DIR_EXPORT)
        m_pks = pks;
        Layout();
}