diff --git a/lib/html/includes.js b/lib/html/includes.js index 4b57ad9f..0912543d 100644 --- a/lib/html/includes.js +++ b/lib/html/includes.js @@ -285,10 +285,10 @@ var _MiniProfiler = (function() { }); // limit count if ( - container.querySelectorAll(".profiler-result").length > + container.querySelectorAll(".profiler-result:not(:has(.profiler-totals))").length > options.maxTracesToShow ) { - var elem = container.querySelector(".profiler-result"); + var elem = container.querySelector('.profiler-result:not(:has(.profiler-totals))'); if (elem) { elem.parentElement.removeChild(elem);