MCPcopy Create free account
hub / github.com/beefytech/Beef / Event

Method Event

BeefySysLib/util/BeefPerf.cpp:537–552  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

535}
536
537void BpCmdTarget::Event(const char* name, const char* details)
538{
539 name = ToStrPtr(name);
540 details = ToStrPtr(details);
541
542 BPCMD_PREPARE;
543
544 int nameLen = (int)strlen(name);
545 int detailsLen = (int)strlen(details);
546 BPCMD_RESERVE(1 + 8 + nameLen+1 + detailsLen+1);
547 BPCMD_MEMBER(uint8) = BpCmd_Event;
548 BPCMD_MEMBER(int64) = GetTimestamp();
549 BPCMD_MEMCPY(name, nameLen + 1);
550 BPCMD_MEMCPY(details, detailsLen + 1);
551 BPCMD_END();
552}
553
554void BpRootCmdTarget::Init()
555{

Callers 1

BpEventFunction · 0.80

Calls 1

GetTimestampFunction · 0.85

Tested by

no test coverage detected