This commit is contained in:
rusefi 2020-05-25 23:38:15 -04:00
parent 1f6d3c538f
commit 1dd2e68908
2 changed files with 3 additions and 4 deletions

View File

@ -160,8 +160,9 @@ void WaveChart::publish() {
*/
void WaveChart::addEvent3(const char *name, const char * msg) {
ScopePerf perf(PE::EngineSniffer);
efitick_t nowNt = getTimeNowNt();
if (getTimeNowNt() < pauseEngineSnifferUntilNt) {
if (nowNt < pauseEngineSnifferUntilNt) {
return;
}
#if EFI_TEXT_LOGGING
@ -191,9 +192,6 @@ void WaveChart::addEvent3(const char *name, const char * msg) {
return;
}
efitick_t nowNt = getTimeNowNt();
bool alreadyLocked = lockOutputBuffer(); // we have multiple threads writing to the same output buffer
if (counter == 0) {

View File

@ -27,6 +27,7 @@ public:
void publish();
bool isFull() const;
bool isStartedTooLongAgo() const;
// looks like this is only used by functional tests on real hardware
efitick_t pauseEngineSnifferUntilNt = 0;
private: