Examples of AntiCacheManagerProfiler


Examples of edu.brown.profilers.AntiCacheManagerProfiler

        this.pendingStatsUpdates = new boolean[num_partitions];
        Arrays.fill(pendingStatsUpdates, false);

        this.profilers = new AntiCacheManagerProfiler[num_partitions];
        for (int partition : hstore_site.getLocalPartitionIds().values()) {
            this.profilers[partition] = new AntiCacheManagerProfiler();
        } // FOR

        this.statsMessage = new TableStatsRequestMessage(catalogContext.getDataTables());
        this.statsMessage.getObservable().addObserver(new EventObserver<VoltTable>() {
            @Override
View Full Code Here

Examples of edu.brown.profilers.AntiCacheManagerProfiler

        assertEquals(expected, results[0].getLong(0));

        // try to read a content back
        assertEquals(readBackTracker, results[0].getString(1));
       
        AntiCacheManagerProfiler profiler = hstore_site.getAntiCacheManager().getDebugContext().getProfiler(0);
        assertNotNull(profiler);
        assertEquals(1, profiler.evictedaccess_history.size());

        evicted = evictResult.getLong("ANTICACHE_TUPLES_EVICTED");
        assertTrue("No tuples were evicted!"+evictResult, evicted > 0);
View Full Code Here

Examples of edu.brown.profilers.AntiCacheManagerProfiler

            boolean adv = results[0].advanceRow();
            assertTrue(adv);
            assertEquals(expected, results[0].getLong(0));
        } // FOR
       
        AntiCacheManagerProfiler profiler = hstore_site.getAntiCacheManager().getDebugContext().getProfiler(0);
        assertNotNull(profiler);
        assertEquals(1, profiler.evictedaccess_history.size());
    }
View Full Code Here

Examples of edu.brown.profilers.AntiCacheManagerProfiler

        VoltTable statsResult = cresponse.getResults()[0];

        System.err.println(VoltTableUtil.format(statsResult));

        // We need this just to get the name of the column
        AntiCacheManagerProfiler profiler = new AntiCacheManagerProfiler();
        String colName = profiler.eviction_time.getName().toUpperCase()+"_CNT";
        while (statsResult.advanceRow()) {
            System.err.println("colName: " + colName);
            int partition = (int)statsResult.getLong("PARTITION");
            VoltTable vt = evictResults.get(partition);
View Full Code Here

Examples of edu.brown.profilers.AntiCacheManagerProfiler

    protected void populateColumnSchema(ArrayList<ColumnInfo> columns) {
        super.populateColumnSchema(columns);
        columns.add(new VoltTable.ColumnInfo("PARTITION", VoltType.INTEGER));
       
        // Make a dummy profiler just so that we can get the fields from it
        AntiCacheManagerProfiler profiler = new AntiCacheManagerProfiler();
        assert(profiler != null);
       
        columns.add(new VoltTable.ColumnInfo("RESTARTED_TXNS", VoltType.INTEGER));
        for (ProfileMeasurement pm : profiler.getProfileMeasurements()) {
            String name = pm.getName().toUpperCase();
            columns.add(new VoltTable.ColumnInfo(name, VoltType.BIGINT));
            columns.add(new VoltTable.ColumnInfo(name+"_CNT", VoltType.BIGINT));
        } // FOR
    }
View Full Code Here

Examples of edu.brown.profilers.AntiCacheManagerProfiler

    @Override
    protected synchronized void updateStatsRow(Object rowKey, Object[] rowValues) {
        int partition = (Integer)rowKey;
        AntiCacheManager.Debug dbg = this.anticache.getDebugContext();
        AntiCacheManagerProfiler profiler = dbg.getProfiler(partition);
       
        int offset = this.columnNameToIndex.get("PARTITION");
        rowValues[offset++] = partition;
        rowValues[offset++] = profiler.restarted_txns;
       
        for (ProfileMeasurement pm : profiler.getProfileMeasurements()) {
            rowValues[offset++] = pm.getTotalThinkTime();
            rowValues[offset++] = pm.getInvocations();
        } // FOR

        super.updateStatsRow(rowKey, rowValues);
View Full Code Here

Examples of edu.brown.profilers.AntiCacheManagerProfiler

                                             PartitionExecutor.SystemProcedureExecutionContext context) {
        DependencySet result = null;
        switch (fragmentId) {
            case DISTRIBUTE_ID: {
                VoltTable vt = new VoltTable(ResultsColumns);
                AntiCacheManagerProfiler profiler = hstore_site.getAntiCacheManager().getDebugContext().getProfiler(this.partitionId);
                assert(profiler != null);
                for (EvictionHistory eh : profiler.eviction_history) {
                    Object row[] = {
                        new TimestampType(),
                        this.hstore_site.getSiteId(),
View Full Code Here

Examples of edu.brown.profilers.AntiCacheManagerProfiler

            // ----------------------------------------------------------------------------
            // COLLECT DATA
            // ----------------------------------------------------------------------------
            case DISTRIBUTE_ID: {
                VoltTable vt = new VoltTable(ACCESS_HISTORY);
                AntiCacheManagerProfiler profiler = hstore_site.getAntiCacheManager().getDebugContext().getProfiler(this.partitionId);
                assert(profiler != null);
                TimestampType timestamp = new TimestampType();
                for (AccessHistory eah : profiler.evictedaccess_history) {
                    String procName = catalogContext.getProcedureById(eah.procId).getName();
                    Object row[] = {
View Full Code Here

Examples of edu.brown.profilers.AntiCacheManagerProfiler

        ExecutionEngine ee = executor.getExecutionEngine();
        assert(tableNames.length == blockSizes.length);
        // LOG.info("reached evict tuples");
       
        // PROFILER
        AntiCacheManagerProfiler profiler = null;
        long start = -1;
        if (hstore_conf.site.anticache_profiling) {
            start = System.currentTimeMillis();
            profiler = hstore_site.getAntiCacheManager().getDebugContext().getProfiler(this.partitionId);
            profiler.eviction_time.start();
View Full Code Here

Examples of edu.brown.profilers.AntiCacheManagerProfiler

        boolean adv = results[0].advanceRow();
        assertTrue(adv);
        System.out.println(results[0]);
        assertEquals(expected, results[0].getLong(0));
       
        AntiCacheManagerProfiler profiler = hstore_site.getAntiCacheManager().getDebugContext().getProfiler(0);
        assertNotNull(profiler);
        assertEquals(1, profiler.evictedaccess_history.size());
       
        // clear out the evicted access history
        profiler.evictedaccess_history.clear();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.