-
- All Implemented Interfaces:
-
org.acra.collector.Collector,org.acra.plugins.Plugin
@AutoService(value = {Collector.class}) public final class MemoryInfoCollector extends BaseReportFieldCollectorCollects results of the
dumpsyscommand.
-
-
Field Summary
Fields Modifier and Type Field Description private final Collector.Orderorder
-
Constructor Summary
Constructors Constructor Description MemoryInfoCollector()
-
Method Summary
Modifier and Type Method Description Collector.OrdergetOrder()BooleanshouldCollect(Context context, CoreConfiguration config, ReportField collect, ReportBuilder reportBuilder)this should check if the config contains the field, but may add additional checks like permissions etc. Unitcollect(ReportField reportField, Context context, CoreConfiguration config, ReportBuilder reportBuilder, CrashReportData target)Collect a ReportField -
-
Method Detail
-
getOrder
Collector.Order getOrder()
-
shouldCollect
Boolean shouldCollect(Context context, CoreConfiguration config, ReportField collect, ReportBuilder reportBuilder)
this should check if the config contains the field, but may add additional checks like permissions etc.
- Parameters:
context- a contextconfig- current configurationcollect- the field to collectreportBuilder- the current reportBuilder
-
collect
Unit collect(ReportField reportField, Context context, CoreConfiguration config, ReportBuilder reportBuilder, CrashReportData target)
Collect a ReportField
- Parameters:
reportField- the reportField to collectcontext- a contextconfig- current ConfigurationreportBuilder- current ReportBuildertarget- put results here
-
-
-
-