How to know No. of cycles used by a C statement?

Hellow all,

In the uVision 2.0 for 8051, how to determine the exact No. of cycles taken to execute a C Language statement? Given that performane analyzer works only on complete functions, not on a single line basis.

Temp = P2; // Takes (??) cycles
Array[Counter] = Temp; // Takes (??) cycles

If(SignBit == 1) // Takes (??) cycles
Temp = 0xF0; // Takes (??) cycles
Temp = 0x0; // Takes (??) cycles

Thanks in advance for your time.

More questions in this forum