Package edu.brown.profilers

Examples of edu.brown.profilers.TransactionQueueManagerProfiler


                                                              hstore_conf.site.txn_incoming_delay,
                                                              this.initThrottleThreshold,
                                                              this.initThrottleRelease);
            this.lockQueues[partition] = queue;
            this.lockQueueBarriers[partition] = new ReentrantLock(true);
            this.profilers[partition] = new TransactionQueueManagerProfiler();
        } // FOR
        Arrays.fill(this.lockQueueLastTxns, Long.valueOf(-1l));
       
        // Use updateConf() to initialize our internal values from the HStoreConf
        this.updateConf(this.hstore_conf, null);
View Full Code Here


    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
        TransactionQueueManagerProfiler profiler = new TransactionQueueManagerProfiler();
        assert(profiler != null);
       
        columns.add(new VoltTable.ColumnInfo("AVG_CONCURRENT", VoltType.FLOAT));
        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

    @Override
    protected synchronized void updateStatsRow(Object rowKey, Object[] rowValues) {
        int partition = (Integer)rowKey;
        TransactionQueueManager.Debug dbg = this.queue_manager.getDebugContext();
        TransactionQueueManagerProfiler profiler = dbg.getProfiler(partition);
        PartitionLockQueue initQueue = this.queue_manager.getLockQueue(partition);
        PartitionLockQueueProfiler initProfiler = initQueue.getDebugContext().getProfiler();
       
        int offset = this.columnNameToIndex.get("PARTITION");
        rowValues[offset++] = partition;
        rowValues[offset++] = MathUtil.weightedMean(profiler.concurrent_dtxn);
       
        for (ProfileMeasurement pm : profiler.getProfileMeasurements()) {
            rowValues[offset++] = pm.getTotalThinkTime();
            rowValues[offset++] = pm.getInvocations();
        } // FOR
       
        // ThrottlingQueue
View Full Code Here

TOP

Related Classes of edu.brown.profilers.TransactionQueueManagerProfiler

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.