Profile-driven discovery of parallelism for multi-core processors door