62 uint32_t
count = d1Size + d2Size;
118 memset(m_stats, 0,
sizeof(m_stats));
145 static int totalBytes = 0;
146 totalBytes += nBytes;
147 printf(
"%d : %d - %x %d", totalBytes, nBytes, m_Hdr.marker, m_Hdr.dataSize);
148 if (nBytes != (headerSize + (
int)m_Hdr.dataSize))
200 static int totalBytes = 0;
201 totalBytes += nBytes;
202 printf(
"%d : %d - %x %d ", totalBytes, nBytes, m_Hdr.marker, m_Hdr.dataSize);
205 printf(
"MARKER MISMATCH!");
214 static bool start =
true;
217 if (m_stats[
id].total)
222 logStats(
"------------------------------------------------\n");
224 logStats(
" ID: Count: Sizeof: Total:\n");
226 logStats(
" %4d%8d %5d %7d\n",
id, m_stats[
id].
count, m_stats[
id].size, m_stats[
id].total);
227 totalBytes += m_stats[id].total;
232 logStats(
"------------------------------------------------\n");
233 logStats(
" %8d Total bytes\n", totalBytes);
236 logStats(
"================================================\n");
238 logStats(
"================================================\n");
240 #if LOG_CHUNK_STATS==2 241 logStats(
"------------------------------------------------\n");
244 memset(m_stats, 0,
sizeof(m_stats));
280 #if !defined(PLATFORM_IS_EVB_2) || !PLATFORM_IS_EVB_2 285 va_start( args, format );
287 #if PLATFORM_IS_EVB_2 290 if( pFile ==
NULL ) {
virtual std::size_t read(void *bytes, std::size_t len)=0
#define DEFAULT_CHUNK_DATA_SIZE
size_t count(InputIterator first, InputIterator last, T const &item)
int32_t WriteToFile(cISLogFileBase *pFile, int groupNumber=0)
cISLogFileBase * CreateISLogFile()
bool PushBack(uint8_t *d1, uint32_t d1Size, uint8_t *d2=NULL, uint32_t d2Size=0)
void SetName(const char name[4])
int32_t ReadFromFile(cISLogFileBase *pFile)
virtual int vprintf(const char *format, va_list args)=0
#define DATA_CHUNK_MARKER
virtual int32_t WriteAdditionalChunkHeader(cISLogFileBase *pFile)
virtual std::size_t write(const void *bytes, std::size_t len)=0
virtual int32_t ReadAdditionalChunkHeader(cISLogFileBase *pFile)
uint8_t m_buffHead[DEFAULT_CHUNK_DATA_SIZE]
void logStats(const char *format,...)
Chunk Header.
virtual int32_t GetHeaderSize()
bool PopFront(uint32_t size)