use of com.android.tools.datastore.SeriesDataType in project android by JetBrains.
the class MemoryProfilerUiManager method createPollers.
@NotNull
@Override
public Set<Poller> createPollers(int pid) {
myDataCache = new MemoryDataCache(myMemoryEventDispatcher);
MemoryPoller poller = new MemoryPoller(myDataStore, myDataCache, pid);
Map<SeriesDataType, DataAdapter> adapters = poller.createAdapters();
for (Map.Entry<SeriesDataType, DataAdapter> entry : adapters.entrySet()) {
// TODO these need to be de-registered
myDataStore.registerAdapter(entry.getKey(), entry.getValue());
}
if (myMemoryDetailView != null) {
myMemoryDetailView.notifyDataIsReady(myDataCache);
}
return Sets.newHashSet(poller);
}
Aggregations