Recent Changes - Search:

edit SideBar

DuktapeMemoryUsage

Valgrind

To build:

  ant eduk

To run with valgrind:

[cxh@terra web]$ valgrind --leak-check=full ./hosts/duktape/eduk/eduk --timeout 3000 test/auto/RampJSDisplay.js
==39655== Memcheck, a memory error detector
==39655== Copyright (C) 2002-2012, and GNU GPLd, by Julian Seward et al.
==39655== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info
==39655== Command: ./hosts/duktape/eduk/eduk --timeout 3000 test/auto/RampJSDisplay.js
==39655==
eduk: About to run test/auto/RampJSDisplay.js
1
2
3
==39655==
==39655== HEAP SUMMARY:
==39655==     in use at exit: 0 bytes in 0 blocks
==39655==   total heap usage: 17,136 allocs, 17,136 frees, 1,887,797 bytes allocated
==39655==
==39655== All heap blocks were freed -- no leaks are possible
==39655==
==39655== For counts of detected and suppressed errors, rerun with: -v
==39655== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 6 from 6)
[cxh@terra web]$
  • Good news: We have no leaks.
  • Bad news: total heap usage: 17,136 allocs, 17,136 frees, 1,887,797 bytes allocated

See Also

Edit - History - Print - Recent Changes - Search
Page last modified on May 17, 2016, at 12:06 AM