I’m trying to profile a script on aptible, in the same environment my app runs in, on a machine of a specific size.
I’ve ran into two issues:
- How do I get the profiler dump from the machine to my local one (I could principally upload it to s3, annoying to setup, but doable)
- How do I run the profile script on a machine of the size I desire?
The hard solution I’m doing rn is to setup a worker machine with the profiling script than upload that to s3, but I feel like getting that to work will take a very long time since it takes sooo long to trial and error, so I’m curios if there are easier alternatives.