Code coverage, performance approximation and automatic recognition of idioms in scientific applications