Skip to content

Commit

Permalink
Merge pull request #150 from WebPlatformForEmbedded/development/Perfo…
Browse files Browse the repository at this point in the history
…rmanceMetrics

[PerfMetrics] only trace on non start url
  • Loading branch information
MFransen69 authored Apr 11, 2022
2 parents 27a5ffe + b7c0705 commit dd84942
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions PerformanceMetrics/TraceOutput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,17 +182,20 @@ class MetricsTraceOuputBrowser : public PerformanceMetrics::IBrowserMetricsLogge

void LoadFinished(const string& URL, const int32_t, const bool success, const uint32_t totalsuccess, const uint32_t totalfailed) override
{
uint64_t rss = 0;
if( _memory != nullptr ) {
rss = _memory->Resident();
if( ( URL != startURL ) ) {

uint64_t rss = 0;
if( _memory != nullptr ) {
rss = _memory->Resident();
}
TRACE(Trace::Metric, (_T("Browser %s page loaded [%s] %s, total success[%u], total failure[%u], RSS: %llu"),
_callsign.c_str(),
URL.c_str(),
(success == true ? _T("successfully") : _T("unsuccessfully")),
totalsuccess,
totalfailed,
rss));
}
TRACE(Trace::Metric, (_T("Browser %s page loaded [%s] %s, total success[%u], total failure[%u], RSS: %llu"),
_callsign.c_str(),
URL.c_str(),
(success == true ? _T("successfully") : _T("unsuccessfully")),
totalsuccess,
totalfailed,
rss));
}

void URLChange(const string&, const bool) override
Expand Down

0 comments on commit dd84942

Please sign in to comment.