debugging with arduino IDE

Hi all,
I am having an atmega328p board and i want to see which parts of my code are taking more time and after that i want to code those parts using gcc-inline assembly .

Is it possible to use inline assembly with arduino IDE

Thanks