Exemple #1
0
        internal List <ChartDataItem <string, long> > ConvertToMostExecutedStatements(IEnumerable <SummaryNormalizedStatementStatistics> topExecuted)
        {
            List <ChartDataItem <string, long> > result = new List <ChartDataItem <string, long> >();

            foreach (var s in topExecuted)
            {
                var itemToAdd = new ChartDataItem <string, long>();
                itemToAdd.DependentValue   = s.TotalExecutionsCount;
                itemToAdd.IndependentValue = s.NormalizedStatement;
                result.Add(itemToAdd);
            }
            return(result);
        }
Exemple #2
0
        internal List <ChartDataItem <string, double> > ConvertToMostSlowestStatements(IEnumerable <SummaryNormalizedStatementStatistics> topSlowest)
        {
            List <ChartDataItem <string, double> > result = new List <ChartDataItem <string, double> >();

            foreach (var s in topSlowest)
            {
                var itemToAdd = new ChartDataItem <string, double>();
                itemToAdd.DependentValue   = s.MaxDuration.TotalMilliseconds;
                itemToAdd.IndependentValue = s.NormalizedStatement;
                result.Add(itemToAdd);
            }
            return(result);
        }
Exemple #3
0
        internal List <ChartDataItem <string, long> > ConvertToMostAliveRelations(IEnumerable <SummaryTotalRelationStatistics> summaryTotalRelationStatistics)
        {
            List <ChartDataItem <string, long> > result = new List <ChartDataItem <string, long> >();

            foreach (var r in summaryTotalRelationStatistics)
            {
                var itemToAdd = new ChartDataItem <string, long>();
                itemToAdd.DependentValue   = r.TotalLivenessCount;
                itemToAdd.IndependentValue = GetRelationName(r.DatabaseID, r.RelationID);
                result.Add(itemToAdd);
            }
            return(result);
        }