d664c21a38
This makes it considerably cheaper to run SKP recording benchmarks, without affecting their measurements and without really affecting SKP playback benchmarks at all. On my machine, running out/Release/nanobench --match skp --config nondrendering drops in run time from 6.7s to 2.5s, and the peak RAM usage drops from 129M to 50M. I'm strongly considering making this lazy decoding the default. BUG=skia: R=robertphillips@google.com, mtklein@google.com Author: mtklein@chromium.org Review URL: https://codereview.chromium.org/572933006
41 lines
865 B
Python
41 lines
865 B
Python
# GYP file to build performance testbench.
|
|
#
|
|
{
|
|
'includes': [
|
|
'apptype_console.gypi',
|
|
],
|
|
'targets': [
|
|
{
|
|
'target_name': 'nanobench',
|
|
'type': 'executable',
|
|
'sources': [
|
|
'../bench/GMBench.cpp',
|
|
'../bench/RecordingBench.cpp',
|
|
'../bench/SKPBench.cpp',
|
|
'../bench/nanobench.cpp',
|
|
'../gm/gm.cpp',
|
|
'../tools/LazyDecodeBitmap.cpp',
|
|
],
|
|
'includes': [
|
|
'bench.gypi',
|
|
'gmslides.gypi',
|
|
],
|
|
'dependencies': [
|
|
'flags.gyp:flags_common',
|
|
'jsoncpp.gyp:jsoncpp',
|
|
'skia_lib.gyp:skia_lib',
|
|
'tools.gyp:crash_handler',
|
|
'tools.gyp:proc_stats',
|
|
'tools.gyp:timer',
|
|
],
|
|
'conditions': [
|
|
['skia_android_framework', {
|
|
'libraries': [
|
|
'-lskia',
|
|
],
|
|
}],
|
|
],
|
|
},
|
|
],
|
|
}
|