Summary: This diff extends the cost_item json format to print the autoreleasepool_size field. Not yet, there is no semantics for that code kind, so the results will always be zero with no traces. Reviewed By: ezgicicek Differential Revision: D23540665 fbshipit-source-id: 94442e376master
parent
5406fa3224
commit
4dbfb72260
@ -0,0 +1,4 @@
|
||||
\[EXPERIMENTAL\] Infer reports this issue when the ObjC autoreleasepool's size complexity of a
|
||||
program increases in degree: e.g. from constant to linear or from logarithmic to quadratic. This
|
||||
issue type is only reported in differential mode: i.e when we are comparing the analysis results of
|
||||
two runs of infer on a file.
|
@ -0,0 +1,8 @@
|
||||
\[EXPERIMENTAL\] Infer reports this issue when the ObjC autoreleasepool's complexity of the
|
||||
procedure increases in degree **and** the procedure runs on the UI (main) thread.
|
||||
|
||||
Infer considers a method as running on the UI thread whenever:
|
||||
|
||||
- The method, one of its overrides, its class, or an ancestral class, is annotated with `@UiThread`.
|
||||
- The method, or one of its overrides is annotated with `@OnEvent`, `@OnClick`, etc.
|
||||
- The method or its callees call a `Litho.ThreadUtils` method such as `assertMainThread`.
|
@ -0,0 +1,2 @@
|
||||
\[EXPERIMENTAL\] This issue type indicates that the program's execution doesn't reach the exit
|
||||
node. Hence, we cannot compute a static bound of ObjC autoreleasepool's size for the procedure.
|
@ -0,0 +1,2 @@
|
||||
\[EXPERIMENTAL\] This warning indicates that Infer was not able to determine a static upper bound on
|
||||
the ObjC autoreleasepool's size in the procedure. By default, this issue type is disabled.
|
@ -1 +1 @@
|
||||
{"top":{"current":2,"previous":1},"zero":{"current":0,"previous":0},"degrees":[{"degree":0,"current":6,"previous":5},{"degree":100,"current":2,"previous":3},{"degree":101,"current":2,"previous":0},{"degree":200,"current":1,"previous":2}]}
|
||||
{"top":{"current":2,"previous":1},"zero":{"current":0,"previous":0},"degrees":[{"degree":0,"current":19,"previous":16},{"degree":100,"current":2,"previous":3},{"degree":101,"current":2,"previous":0},{"degree":200,"current":1,"previous":2}]}
|
@ -1 +1 @@
|
||||
{"top":{"current":0,"previous":0},"zero":{"current":0,"previous":0},"degrees":[{"degree":0,"current":3,"previous":4},{"degree":100,"current":4,"previous":1},{"degree":200,"current":0,"previous":1}]}
|
||||
{"top":{"current":0,"previous":0},"zero":{"current":0,"previous":0},"degrees":[{"degree":0,"current":10,"previous":10},{"degree":100,"current":4,"previous":1},{"degree":200,"current":0,"previous":1}]}
|
Loading…
Reference in new issue