| 535 | } |
| 536 | |
| 537 | void 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 | |
| 554 | void BpRootCmdTarget::Init() |
| 555 | { |
no test coverage detected