Add sample profiling interface to startMethodTracing.

Libcore side of this change. Also changed art and frameworks base.

Change-Id: Ie26982dfb09d4098708d701b5429fd09e710a25d