Package edu.brown.profilers

Examples of edu.brown.profilers.MarkovEstimatorProfiler


        TypedPoolableObjectFactory<MarkovEstimatorState> s_factory = new MarkovEstimatorState.Factory(this.catalogContext);
        int num_idle = (int)(hstore_conf.site.network_incoming_limit_txns * hstore_conf.site.pool_scale_factor);
        this.statesPool = new TypedObjectPool<MarkovEstimatorState>(s_factory, num_idle);
       
        if (hstore_conf.site.markov_profiling) {
            this.profiler = new MarkovEstimatorProfiler();
        } else {
            this.profiler = null;
        }
    }
View Full Code Here


    @Override
    protected void populateColumnSchema(ArrayList<ColumnInfo> columns) {
        super.populateColumnSchema(columns);
       
        // Make a dummy profiler just so that we can get the fields from it
        MarkovEstimatorProfiler profiler = new MarkovEstimatorProfiler();
        assert(profiler != null);
       
        columns.add(new VoltTable.ColumnInfo("PARTITION", VoltType.INTEGER));
        for (ProfileMeasurement pm : profiler.getProfileMeasurements()) {
            String name = pm.getName().toUpperCase();
            // We need two columns per ProfileMeasurement
            //  (1) The total think time in nanoseconds
            //  (2) The number of invocations
            columns.add(new VoltTable.ColumnInfo(name, VoltType.BIGINT));
View Full Code Here

        Integer partition = (Integer)rowKey;
        TransactionEstimator est = hstore_site.getPartitionExecutor(partition).getTransactionEstimator();
        assert(est != null) : "Unexpected null TransactionEstimator for partition " + partition;
        MarkovEstimator.Debug dbg = ((MarkovEstimator)est).getDebugContext();
        assert(dbg != null);
        MarkovEstimatorProfiler profiler = dbg.getProfiler();
        assert(profiler != null);
       
        int offset = columnNameToIndex.get("PARTITION");
        rowValues[offset++] = partition;
        for (ProfileMeasurement pm : profiler.getProfileMeasurements()) {
            rowValues[offset++] = pm.getTotalThinkTime();
            rowValues[offset++] = pm.getInvocations();
        } // FOR
        super.updateStatsRow(rowKey, rowValues);
    }
View Full Code Here

TOP

Related Classes of edu.brown.profilers.MarkovEstimatorProfiler

Copyright © 2018 www.massapicom. 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.