Bug 788022 - Add support for dalvik profiling. r=snorp,kats

--HG--
extra : rebase_source : 3021e4315ce0ce5dbef9db84a12502d66dfc7967
Bug 864342: Add static_cast for known-nonnegative signed value, to fix gcc warning. r=djvj