Lines Matching refs:prof

385         struct mcp_memprofile *prof = calloc(1, sizeof(struct mcp_memprofile));  in proxy_init()  local
386 prof->id = ctx->memprofile_thread_counter++; in proxy_init()
387 L = lua_newstate(mcp_profile_alloc, prof); in proxy_init()
447 struct mcp_memprofile *prof = calloc(1, sizeof(struct mcp_memprofile)); in proxy_thread_init() local
448 prof->id = pctx->memprofile_thread_counter++; in proxy_thread_init()
449 L = lua_newstate(mcp_profile_alloc, prof); in proxy_thread_init()
1445 struct mcp_memprofile *prof = ud; in mcp_profile_alloc() local
1475 prof->allocs[t]++; in mcp_profile_alloc()
1476 prof->alloc_bytes[t] += nsize; in mcp_profile_alloc()
1479 prof->allocs[mcp_memp_realloc]++; in mcp_profile_alloc()
1480 prof->alloc_bytes[mcp_memp_realloc] += nsize; in mcp_profile_alloc()
1482 prof->allocs[mcp_memp_free]++; in mcp_profile_alloc()
1483 prof->alloc_bytes[mcp_memp_free] += osize; in mcp_profile_alloc()
1488 if (now.tv_sec != prof->last_status.tv_sec) { in mcp_profile_alloc()
1489 prof->last_status.tv_sec = now.tv_sec; in mcp_profile_alloc()
1491 prof->id, in mcp_profile_alloc()
1492 (unsigned long long)prof->allocs[1], in mcp_profile_alloc()
1493 (unsigned long long)prof->alloc_bytes[1], in mcp_profile_alloc()
1494 (unsigned long long)prof->allocs[2], in mcp_profile_alloc()
1495 (unsigned long long)prof->alloc_bytes[2], in mcp_profile_alloc()
1496 (unsigned long long)prof->allocs[3], in mcp_profile_alloc()
1497 (unsigned long long)prof->alloc_bytes[3], in mcp_profile_alloc()
1498 (unsigned long long)prof->allocs[4], in mcp_profile_alloc()
1499 (unsigned long long)prof->alloc_bytes[4], in mcp_profile_alloc()
1500 (unsigned long long)prof->allocs[5], in mcp_profile_alloc()
1501 (unsigned long long)prof->alloc_bytes[5], in mcp_profile_alloc()
1502 (unsigned long long)prof->allocs[6], in mcp_profile_alloc()
1503 (unsigned long long)prof->alloc_bytes[6], in mcp_profile_alloc()
1504 (unsigned long long)prof->allocs[7], in mcp_profile_alloc()
1505 (unsigned long long)prof->alloc_bytes[7], in mcp_profile_alloc()
1506 (unsigned long long)prof->allocs[0], in mcp_profile_alloc()
1507 (unsigned long long)prof->alloc_bytes[0]); in mcp_profile_alloc()
1509 prof->allocs[x] = 0; in mcp_profile_alloc()
1510 prof->alloc_bytes[x] = 0; in mcp_profile_alloc()