ARM-software / trappy

This repository has moved to https://gitlab.arm.com/tooling/trappy
Apache License 2.0
60 stars 39 forks source link

trappy: Improve performance of parser #246

Closed joelagnel closed 7 years ago

joelagnel commented 7 years ago

This patch reduces the frequency of calling getrusage resulting in a ~3-5% performance improvement in parsing. We do a check in the beginning and then check once every 10000 events.

Signed-off-by: Joel Fernandes joelaf@google.com

joelagnel commented 7 years ago

Ping?

JaviMerino commented 7 years ago

My only worry is how to come up with a good value for CHECK_MEM_COUNT. 10000 is as good as any value, so let's wait for somebody to complain and then we will adjust it.