Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ~ % cat b.go
- // You can edit this code!
- // Click here and start typing.
- package main
- import "fmt"
- func main() {
- fmt.Println("Hello, 世界")
- }
- ~ % valgrind gccgo b.go
- ==23765== Memcheck, a memory error detector
- ==23765== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
- ==23765== Using Valgrind-3.10.0.SVN and LibVEX; rerun with -h for copyright info
- ==23765== Command: gccgo b.go
- ==23765==
- ==23765==
- ==23765== HEAP SUMMARY:
- ==23765== in use at exit: 64,915 bytes in 177 blocks
- ==23765== total heap usage: 351 allocs, 174 frees, 82,459 bytes allocated
- ==23765==
- ==23765== LEAK SUMMARY:
- ==23765== definitely lost: 27,176 bytes in 108 blocks
- ==23765== indirectly lost: 82 bytes in 5 blocks
- ==23765== possibly lost: 0 bytes in 0 blocks
- ==23765== still reachable: 37,657 bytes in 64 blocks
- ==23765== suppressed: 0 bytes in 0 blocks
- ==23765== Rerun with --leak-check=full to see details of leaked memory
- ==23765==
- ==23765== For counts of detected and suppressed errors, rerun with: -v
- ==23765== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement