Add assert statement for END phases.
This commit is contained in:
@@ -118,7 +118,10 @@ void TlmRecorder::recordPhase(tlm_generic_payload &trans,
|
||||
introduceTransactionSystem(trans);
|
||||
|
||||
if (phase == END_REQ || phase == END_RESP || phase >= END_PDNA)
|
||||
{
|
||||
assert(getPhaseName(phase).substr(4) == currentTransactionsInSystem[&trans].recordedPhases.back().name);
|
||||
currentTransactionsInSystem[&trans].recordedPhases.back().interval.end = time;
|
||||
}
|
||||
else
|
||||
{
|
||||
std::string phaseName = getPhaseName(phase).substr(6); // remove "BEGIN_"
|
||||
|
||||
Reference in New Issue
Block a user