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

Method Get

IDEHelper/Profiler.cpp:163–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161}
162
163ProfileProcId* DbgProfiler::Get(const StringImpl& str, bool* outIsNew)
164{
165 ProfileProdIdEntry checkEntry;
166 checkEntry.mProcId = (ProfileProcId*)&str;
167
168 ProfileProdIdEntry* entryPtr;
169 if (mUniqueProcSet.TryAdd(checkEntry, &entryPtr))
170 {
171 auto procId = new ProfileProcId();
172 procId->mProcName = str;
173 procId->mIsIdle = false;
174 entryPtr->mProcId = procId;
175 if (outIsNew != NULL)
176 *outIsNew = true;
177 return procId;
178 }
179 else
180 {
181 if (outIsNew != NULL)
182 *outIsNew = false;
183 return entryPtr->mProcId;
184 }
185}
186
187void DbgProfiler::ThreadProc()
188{

Calls 1

TryAddMethod · 0.45

Tested by

no test coverage detected