Search in sources :

Example 1 with SeriesDataType

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);
}
Also used : MemoryDataCache(com.android.tools.idea.monitor.ui.memory.model.MemoryDataCache) MemoryPoller(com.android.tools.idea.monitor.ui.memory.model.MemoryPoller) DataAdapter(com.android.tools.datastore.DataAdapter) SeriesDataType(com.android.tools.datastore.SeriesDataType) Map(java.util.Map) NotNull(org.jetbrains.annotations.NotNull)

Aggregations

DataAdapter (com.android.tools.datastore.DataAdapter)1 SeriesDataType (com.android.tools.datastore.SeriesDataType)1 MemoryDataCache (com.android.tools.idea.monitor.ui.memory.model.MemoryDataCache)1 MemoryPoller (com.android.tools.idea.monitor.ui.memory.model.MemoryPoller)1 Map (java.util.Map)1 NotNull (org.jetbrains.annotations.NotNull)1