Merge changes I98f17636,I11f6946d into main

* changes:
  profcollect: Do not collect traces for 32-bit libraries
  profcollect: Record profiles for apps