Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tor Browser
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tommy Webb
Tor Browser
Commits
2434340f
Commit
2434340f
authored
7 years ago
by
Steve Fink
Browse files
Options
Downloads
Patches
Plain Diff
Bug 1400468 - Trim output, r=jonco
--HG-- extra : rebase_source : de700225cbfcfc4a3fad56327d9007eabff02859
parent
a4306ab9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
js/src/devtools/rootAnalysis/analyzeHeapWrites.js
+12
-1
12 additions, 1 deletion
js/src/devtools/rootAnalysis/analyzeHeapWrites.js
with
12 additions
and
1 deletion
js/src/devtools/rootAnalysis/analyzeHeapWrites.js
+
12
−
1
View file @
2434340f
...
...
@@ -684,6 +684,12 @@ CallSite.prototype.safeString = function()
var
errorCount
=
0
;
var
errorLimit
=
100
;
// We want to suppress output for functions that ended up not having any
// hazards, for brevity of the final output. So each new toplevel function will
// initialize this to a string, which should be printed only if an error is
// seen.
var
errorHeader
;
var
startTime
=
new
Date
;
function
elapsedTime
()
{
...
...
@@ -753,7 +759,7 @@ for (var bodyIndex = minStream; bodyIndex <= maxStream; bodyIndex++) {
print
(
elapsedTime
()
+
"
Found
"
+
roots
.
length
+
"
roots.
"
);
for
(
var
i
=
0
;
i
<
roots
.
length
;
i
++
)
{
var
root
=
roots
[
i
];
print
(
elapsedTime
()
+
"
#
"
+
(
i
+
1
)
+
"
Analyzing
"
+
root
+
"
...
"
)
;
errorHeader
=
elapsedTime
()
+
"
#
"
+
(
i
+
1
)
+
"
Analyzing
"
+
root
+
"
...
"
;
try
{
processRoot
(
root
);
}
catch
(
e
)
{
...
...
@@ -776,6 +782,11 @@ var reachableLoops;
function
dumpError
(
entry
,
location
,
text
)
{
if
(
errorHeader
)
{
print
(
errorHeader
);
errorHeader
=
undefined
;
}
var
stack
=
entry
.
stack
;
print
(
"
Error:
"
+
text
);
print
(
"
Location:
"
+
entry
.
name
+
(
location
?
"
@
"
+
location
:
""
)
+
stack
[
0
].
safeString
());
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment