profilo icon indicating copy to clipboard operation
profilo copied to clipboard

Running Stacks and Blocks analyzing return no value

Open AndrejLee opened this issue 8 years ago • 4 comments

After getting log file from my project deployed on emulator, I run stacks and blocks analyzing but got no result (0 is stacks items size):

image

Meanwhile, I could get analyzed graph in syscounters:

image

AndrejLee avatar May 23 '18 04:05 AndrejLee

What Android version were these from? Stacks would work best from 6.x.

Systrace collection is disabled in master right now due to bugs we discovered in how we do PLT hooking. This may be why you're not seeing any blocks.

BurntBrunch avatar May 23 '18 21:05 BurntBrunch

My emulator's Android version is 8.0.

AndrejLee avatar May 24 '18 04:05 AndrejLee

Looking at the actual contents of the trace might give us an idea of what's going on. Could you please provide a snippet from the trace? You can probably do something like gunzip -c override-main... > outfile and that should give you the uncompressed contents of the file, which should look something like this:

dt
ver|3
id|GeHZavrJSAb
prec|6
pid|23725
arch|i686
os|Android6.0

1|TRACE_START|50204738439|23725|2147483647|1|7460043096821407771
1|TRACE_ANNOTATION|1822|0|-2139357177|-1|-7460043096821407771
1|PROCESS_LIST|48717|18|-8126470|0|0
4|STRING_KEY|3|processes
5|STRING_VALUE|4|com.facebook.loom.sample(23725)
3|MARK_PUSH|5301|0|0|0|0
7|STRING_KEY|6|__name
8|STRING_VALUE|7|Suspending mutator threads
3|MARK_POP|1145|0|0|0|0

ricardorey10 avatar May 24 '18 17:05 ricardorey10

You're probably getting hit by a double whammy of not-quite-there providers.

3402c092c9821461bda82de1581e810a93ed184b disabled systrace hooking temporarily because we're seeing some issues with hooking we're working through.

Stack trace collection was never implemented on 8.x. We're currently in the process of redoing stack unwinding, so this type of support is much easier to forward-port.

BurntBrunch avatar May 24 '18 17:05 BurntBrunch