summaryrefslogtreecommitdiff
path: root/xmllint.c
diff options
context:
space:
mode:
Diffstat (limited to 'xmllint.c')
-rw-r--r--xmllint.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/xmllint.c b/xmllint.c
index a72fcca..9b4d695 100644
--- a/xmllint.c
+++ b/xmllint.c
@@ -1236,8 +1236,20 @@ static void parseAndPrintFile(char *filename, xmlParserCtxtPtr rectxt) {
*/
if (copy) {
tmp = doc;
+ if (timing) {
+ startTimer();
+ }
doc = xmlCopyDoc(doc, 1);
+ if (timing) {
+ endTimer("Copying");
+ }
+ if (timing) {
+ startTimer();
+ }
xmlFreeDoc(tmp);
+ if (timing) {
+ endTimer("Freeing original");
+ }
}
#endif /* LIBXML_TREE_ENABLED */