Profile code with profvis to identify bottlenecks.