示例#1
0
EStatus StationDump(const Station* pThis)
{
    DUMP_PRINT("Station: [id=%d]", (int)pThis->id);
    DUMP_PRINT("Outbox:");
    CHECK(ListEnumerate(pThis->pOutbox, (ItemEnumerator)&StationDumpPacketEntry, NULL));
    DUMP_INSTANCE(Routing, pThis->pRouting);
    DUMP_INSTANCE(Scheduler, pThis->pScheduler);
    return eSTATUS_COMMON_OK;
}
示例#2
0
_enResult CMemMgr::Dump(FILE* pf)
{    
    CMemNode* pclMemNode;
	CMemNodeMap::iterator mi;
    uint32 u32TotalSize = 0;
    
    AUTO_MUTEX(m_thisMutexId);
    
    for(mi = m_clMemNodeMap.begin(); mi != m_clMemNodeMap.end(); mi++)
    {
	    pclMemNode = (*mi).second;
        DUMP_PRINT(pf, "CMemMgr::Dump MemPtr %p, Type %s, Size %d, Alloc at %s %d\r\n", 
            pclMemNode->pMemPointer, pclMemNode->strType.c_str(), pclMemNode->u32Size, pclMemNode->pchFileName, pclMemNode->u32LineNum);
        u32TotalSize += pclMemNode->u32Size;
    }
    DUMP_PRINT(pf, "Total allocated memory size is %d byets!\r\n", u32TotalSize);
    
    return SUCC;
}
示例#3
0
Boolean StationDumpPacketEntry(PacketEntry* pEntry, void* pArg)
{
    DUMP_PRINT("PacketEntry: [retriesCount=%d, nextRetryTime=%f]", pEntry->retriesCount, pEntry->nextRetryTime);
    DUMP_INSTANCE(Packet, pEntry->pPacket);
    return TRUE;
}