Fix bug in profiling support:

* size should be 1 smaller so that it will not overlap with next function
* add_range_count should pass in size instead of end_addr

Change-Id: I5ac79f14389982500921ea13c30e6611381710a2
Merge "Fix bug in profiling support:"