bug 166967, "profile summary is incorrect"

fix profile summary format string to include avg call time.
also makes isURLFiltered return true for empty urls.
This commit is contained in:
rginda%netscape.com 2002-09-06 06:54:07 +00:00
Родитель c3cf689d16
Коммит 7ec7c07562
2 изменённых файлов: 7 добавлений и 6 удалений

Просмотреть файл

@ -33,7 +33,7 @@
*
*/
const __vnk_version = "0.9.36+";
const __vnk_version = "0.9.37";
const __vnk_requiredLocale = "0.9.x";
var __vnk_versionSuffix = "";
@ -133,10 +133,11 @@ function isURLVenkman (url)
function isURLFiltered (url)
{
return ((console.prefs["enableChromeFilter"] &&
(url.search(/^chrome:/) == 0 ||
("componentPath" in console &&
url.indexOf(console.componentPath) == 0))) ||
return (!url ||
(console.prefs["enableChromeFilter"] &&
(url.search(/^chrome:/) == 0 ||
("componentPath" in console &&
url.indexOf(console.componentPath) == 0))) ||
(url.search (/^chrome:\/\/venkman/) == 0 &&
url.search (/test/) == -1));
}

Просмотреть файл

@ -283,7 +283,7 @@ msn.fmt.frame.line = #%1$S: %2$S
msn.fmt.frame.location = %1$S, line %2$S, pc %3$S
# 1: function name, 2: start line, 3: end line, 4: call count, 5: recurse,
# 6: total, 7: min, 8: max, 9: avg
msn.fmt.profile.str = %1$S: %2$S-%3$S, %4$S call(s)%5$S, %6$Sms total, %7$Sms max, %8$Sms avg
msn.fmt.profile.str = %1$S: %2$S-%3$S, %4$S call(s)%5$S, %6$Sms total, %7$Sms min, %8$Sms max, %9$Sms avg
# 1: max recurse depth
msn.fmt.profile.recurse = " (max depth %1$S)