add support for debug and profile contexts.

Change-Id: I759e54e365a344a93d725eb4fa70a2c4c98bf05a
3 files changed