MCPcopy Create free account
hub / github.com/GameTechDev/PresentMon / FindFirstRowWithPid

Method FindFirstRowWithPid

IntelPresentMon/PresentMonAPI2Tests/CsvHelper.h:786–807  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

784}
785
786bool CsvParser::FindFirstRowWithPid(const unsigned int& searchProcessId)
787{
788 for (;;) {
789 if (!ReadRow(true)) {
790 break;
791 }
792 if (headerColumnIndex_[Header_ProcessID] != SIZE_MAX) {
793 auto processColIdx = headerColumnIndex_[Header_ProcessID];
794 char const* processIdString = nullptr;
795 if (processColIdx < cols_.size()) {
796 processIdString = cols_[Header_ProcessID];
797 unsigned int currentProcessId = 0;
798 int succeededCount = sscanf_s(processIdString, "%ud", &currentProcessId);
799 if (searchProcessId == currentProcessId) {
800 return true;
801 }
802 }
803 }
804 }
805
806 return false;
807}
808
809bool CsvParser::ResetCsv()
810{

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected