diff options
-rw-r--r-- | README.md | 7 | ||||
-rw-r--r-- | docs/safetynet.md | 3 |
2 files changed, 10 insertions, 0 deletions
@@ -141,6 +141,13 @@ checkout to see if the same failures appear. Code coverage reports for PDFium can be generated in Linux development environments. Details can be found [here](/docs/code-coverage.md). +## Profiling + +Valgrind and other profiling tools do not work correctly with the standard build +setup that PDFium uses. You will need to add +`ro_segment_workaround_for_valgrind=true` to `args.gn` to get symbols to +correctly appear. + ## Waterfall The current health of the source tree can be found at diff --git a/docs/safetynet.md b/docs/safetynet.md index 540f7db2eb..3ec1ccc5d0 100644 --- a/docs/safetynet.md +++ b/docs/safetynet.md @@ -106,6 +106,9 @@ Make sure valgrind is installed: $ valgrind ``` +Add `ro_segment_workaround_for_valgrind=true` to `args.gn` for symbols to appear +correctly. + This is a slow and accurate profiler. Expect variations of around 100 instructions. However, this takes about 50 times longer to run than perf stat. |