summaryrefslogtreecommitdiffstats
path: root/scripts/oe-trim-schemas
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2015-07-24 11:40:55 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-07-24 23:28:35 +0100
commit9901415ecd11df0da73fccd867c4f1ba39abc9ab (patch)
tree1032349b26f2d3b83722620759be461150f4b3ea /scripts/oe-trim-schemas
parent67c6cc854f0add255a0559b9104c83b5d2ffde64 (diff)
downloadpoky-9901415ecd11df0da73fccd867c4f1ba39abc9ab.tar.gz
bitbake: data_smart: Improve performance of infer_caller_details()
As things stand now, bitbake -e (which turns on all the caller tracking) of OE-Core generates around 9.5 million stat calls which is slow and the largest single thing on the profile data. This is because infer_caller_details() calls traceback.extract_stack() which adds line contents to the traceback. This in turn calls python's internal linecache code which calls stat on every file for every callback. We don't even use that info. We only even want a single frame of the stack. Instead, open code for the pieces of information we need. Also, only obtain the stack once for both halves of the infer_caller_details() code. This reduces the number of stat calls to around 0.5 million and significantly improves parsing with bitbake -e. (Bitbake rev: 7be76d8f79ea92fd4bd36146eb9a4b86551b526d) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/oe-trim-schemas')
0 files changed, 0 insertions, 0 deletions