How can I measure how long each preprocessing step takes? #3995
-
DITA-OT preprocessing consists of various stages ( |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
To measure the runtime of each processing step of a DITA-OT transformation, you can do the following:
The script extracts the information added by the Ant profile logger, filters any targets that complete in less than one second, then prints the results as an indented list:
|
Beta Was this translation helpful? Give feedback.
-
Thanks for adding this discussion @chrispy-snps I just gave someone a link to this. |
Beta Was this translation helpful? Give feedback.
To measure the runtime of each processing step of a DITA-OT transformation, you can do the following:
Enable Ant profiling by setting the following variable in your environment:
Run your transformation and redirect the output to a log file:
Use the attached script to extract the per-target runtimes:
Script attachment: extract_target_runtimes.zip
The script extracts the information added by the Ant profile logger, filters any targets that complete in less than one secon…