-
-
Save mnutt/7b049b9f55e12d8bb9ad7d5529cef382 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
================================================================= | |
==23422==ERROR: LeakSanitizer: detected memory leaks | |
Direct leak of 31968 byte(s) in 1998 object(s) allocated from: | |
#0 0x8d238d in operator new(unsigned long) (/home/mnutt/src/v8go-test-memory/test-memory+0x8d238d) (BuildId: deabf08290cfdeb011814ef9d59d5243b9a7ed5b) | |
#1 0xa3d0d3 in NewObjectTemplate /home/mnutt/go/pkg/mod/rogchap.com/[email protected]/v8go.cc:434:20 | |
SUMMARY: AddressSanitizer: 31968 byte(s) leaked in 1998 allocation(s). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ go tool pprof /tmp/mem-test | |
File: test-memory | |
Build ID: 5cae3e61b40c9c56e95a2f0737d5c45dfe18f6ad | |
Type: inuse_space | |
Time: Feb 11, 2022 at 3:40am (UTC) | |
Entering interactive mode (type "help" for commands, "o" for options) | |
(pprof) top20 | |
Showing nodes accounting for 2.52GB, 99.71% of 2.53GB total | |
Dropped 20 nodes (cum <= 0.01GB) | |
Showing top 20 nodes out of 30 | |
flat flat% sum% cum cum% | |
0.88GB 34.85% 34.85% 0.88GB 34.85% golang.org/x/net/html.(*parser).addElement (inline) | |
0.81GB 32.05% 66.90% 0.81GB 32.05% golang.org/x/net/html.(*parser).addText | |
0.80GB 31.76% 98.67% 0.83GB 32.81% golang.org/x/net/html.(*Tokenizer).Token | |
0.03GB 1.04% 99.71% 0.03GB 1.04% golang.org/x/net/html/atom.String | |
0 0% 99.71% 2.52GB 99.71% _cgoexp_3d02b45005c8_goFunctionCallback | |
0 0% 99.71% 2.52GB 99.71% github.com/PuerkitoBio/goquery.NewDocumentFromReader | |
0 0% 99.71% 0.28GB 11.08% golang.org/x/net/html.(*parser).addFormattingElement | |
0 0% 99.71% 2.52GB 99.71% golang.org/x/net/html.(*parser).parse | |
0 0% 99.71% 1.69GB 66.90% golang.org/x/net/html.(*parser).parseCurrentToken | |
0 0% 99.71% 0.02GB 0.97% golang.org/x/net/html.(*parser).parseImpliedToken | |
0 0% 99.71% 2.52GB 99.71% golang.org/x/net/html.Parse (inline) | |
0 0% 99.71% 2.52GB 99.71% golang.org/x/net/html.ParseWithOptions | |
0 0% 99.71% 1.39GB 55.15% golang.org/x/net/html.inBodyIM | |
0 0% 99.71% 1.39GB 55.11% golang.org/x/net/html.inCellIM | |
0 0% 99.71% 0.14GB 5.48% golang.org/x/net/html.inRowIM | |
0 0% 99.71% 0.11GB 4.54% golang.org/x/net/html.inTableBodyIM | |
0 0% 99.71% 0.13GB 5.21% golang.org/x/net/html.inTableIM | |
0 0% 99.71% 2.52GB 99.71% main.NewHtmlParser | |
0 0% 99.71% 2.52GB 99.71% main.getHtmlParserCallback.func1 | |
0 0% 99.71% 2.52GB 99.73% main.main |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment