support static optimization profiling