[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * README-hacking, tp/Texinfo/XS/parsetexi/README:
From: |
Gavin D. Smith |
Subject: |
branch master updated: * README-hacking, tp/Texinfo/XS/parsetexi/README: valgrind --leak-check for parsetexi. |
Date: |
Thu, 29 Sep 2022 14:14:54 -0400 |
This is an automated email from the git hooks/post-receive script.
gavin pushed a commit to branch master
in repository texinfo.
The following commit(s) were added to refs/heads/master by this push:
new 1266f50dcf * README-hacking, tp/Texinfo/XS/parsetexi/README: valgrind
--leak-check for parsetexi.
1266f50dcf is described below
commit 1266f50dcfa0102d2a0dd552ffe4455efca2f7a7
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Thu Sep 29 19:14:46 2022 +0100
* README-hacking, tp/Texinfo/XS/parsetexi/README:
valgrind --leak-check for parsetexi.
---
ChangeLog | 5 +++++
README-hacking | 1 +
tp/Texinfo/XS/parsetexi/README | 16 ++++++++++------
3 files changed, 16 insertions(+), 6 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index c3d6c21a69..a0f9f60374 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2022-09-29 Gavin Smith <gavinsmith0123@gmail.com>
+
+ * README-hacking, tp/Texinfo/XS/parsetexi/README:
+ valgrind --leak-check for parsetexi.
+
2022-09-29 Patrice Dumas <pertusus@free.fr>
* tp/Texinfo/Convert/HTML.pm (_convert_printindex_command):
diff --git a/README-hacking b/README-hacking
index 213d9836db..9c6fd5dcbb 100644
--- a/README-hacking
+++ b/README-hacking
@@ -212,6 +212,7 @@ to update ancilliary files in build-aux and elsewhere.
Check changes before
committing.
run all tests with valgrind
+parsetexi memory leak checks with valgrind
NYTProf profiling for Perl code to check for avoidable hotspots
diff --git a/tp/Texinfo/XS/parsetexi/README b/tp/Texinfo/XS/parsetexi/README
index bb818b8924..519bf1d90c 100644
--- a/tp/Texinfo/XS/parsetexi/README
+++ b/tp/Texinfo/XS/parsetexi/README
@@ -1,4 +1,4 @@
-This program replicates the functionality in tp/Texinfo/ParserNonXS.pm.
+This module replicates the functionality in tp/Texinfo/ParserNonXS.pm.
=====================================================================
@@ -19,11 +19,11 @@ export PERL5LIB to the value in the makeinfo script
with alias VAL='valgrind --log-file=val.log', can do e.g.
-VAL perl ./texi2any-C.pl texinfo.texi
+VAL perl ./texi2any.pl texinfo.texi
also
-valgrind --vgdb-error=0 perl texi2any-C.pl texinfo.texi
+valgrind --vgdb-error=0 perl texi2any.pl texinfo.texi
=====================================================================
@@ -31,9 +31,6 @@ To see contents of leaked memory
Run with valgrind, e.g.
-s=../../tp
-export srcdir=$s builddir=. top_srcdir=../../ top_builddir=..
-export TEXINFO_XS_PARSER=1
valgrind --leak-check=full --vgdb-error=0 --vgdb-stop-at=exit \
perl -w $s/t/18itemize.t
@@ -54,4 +51,11 @@ $ for t in `cat test-list` ; do valgrind
--log-file=val.log.$t \
--leak-check=full perl -w $s/t/18itemize.t $t ; done
+%
+
+checking memory leaks
+install Perl::Destruct::Level via cpan
+then e.g.
+
+VAL --leak-check=full perl -M'Perl::Destruct::Level level => 1' -w
t/02coverage.t
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: * README-hacking, tp/Texinfo/XS/parsetexi/README: valgrind --leak-check for parsetexi.,
Gavin D. Smith <=