Examples of BatchPlannerProfiler


Examples of edu.brown.profilers.BatchPlannerProfiler

                          final ParameterSet[] batchArgs) {
        final boolean predict_singlePartitioned = (predict_partitions.size() == 1);
       
        if (hstore_conf.site.planner_profiling) {
            if (this.profiler == null)
                this.profiler = new BatchPlannerProfiler();
            this.profiler.plan_time.start();
            this.profiler.transactions.incrementAndGet();
        }
        if (debug.val) {
            LOG.debug(String.format("Constructing a new %s BatchPlan for %s txn #%d",
View Full Code Here

Examples of edu.brown.profilers.BatchPlannerProfiler

        columns.add(new VoltTable.ColumnInfo("PROCEDURE", VoltType.STRING));
        columns.add(new VoltTable.ColumnInfo("NUM_PLANNERS", VoltType.BIGINT));
        columns.add(new VoltTable.ColumnInfo("TRANSACTIONS", VoltType.BIGINT));
        columns.add(new VoltTable.ColumnInfo("CACHED", VoltType.BIGINT));
       
        BatchPlannerProfiler profiler = new BatchPlannerProfiler();
        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.BatchPlannerProfiler

        Procedure proc = (Procedure)rowKey;
        if (debug.val) LOG.debug("Collecting BatchPlanner stats for " + proc.getName());
       
        // We're going to create a new profiler that we can use
        // to add up all of the values from the individual BatchPlannerProfilers
        BatchPlannerProfiler total = new BatchPlannerProfiler();
        ProfileMeasurement totalPMs[] = total.getProfileMeasurements();
       
        // Find all of the BatchPlanners for each partition for our target procedure
        Collection<BatchPlanner> planners = this.getBatchPlanners(proc);
        for (BatchPlanner planner : planners) {
            BatchPlannerProfiler profiler = planner.getDebugContext().getProfiler();
            if (profiler == null) continue;
           
            ProfileMeasurement profilerPMs[] = profiler.getProfileMeasurements();
            assert(totalPMs.length == profilerPMs.length);
            for (int i = 0; i < totalPMs.length; i++) {
                totalPMs[i].appendTime(profilerPMs[i]);
            } // FOR
           
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.