Add libcore support for sample profiling from traceview gui.

This change unifies the native method tracing interface between art
and dalvik, and so the two files can merged again.

(cherry picked from commit cd28c9550cbc77b5b856a13638f221f1cd9fc6ab)

Change-Id: Id834945644615c4d8d8536140842d9036f38fbeb
2 files changed