I think recent versions of systrace may have the ability to capture raw trace "offline" (to memory or local file on target), then later you can upload to host for conversion to .html.
If capturing to local file on target, you'll want to make sure the appropriate filesystem is mounted, and add to init.rc script the systrace command to start logging to file.
You'll of course miss everything prior to that point.
See frameworks/native/cmds/atrace/ for the target portion of systrace.