Esempio n. 1
0
        static HierarchyList <CallTreeNodeViewModel> LoadWorker(ProfilingDataProvider provider, QueryCompiler compiler, int rangeStart, int rangeEnd)
        {
            try {
                if (compiler.Compile())
                {
                    var data  = compiler.ExecuteQuery(provider, rangeStart, rangeEnd);
                    var nodes = data.Select(i => new CallTreeNodeViewModel(i, null)).ToList();
                    return(new HierarchyList <CallTreeNodeViewModel>(nodes));
                }
            } catch (ObjectDisposedException) {
                return(null);
            }

            return(null);
        }
        static HierarchyList <CallTreeNodeViewModel> LoadWorker(ProfilingDataProvider provider, QueryCompiler compiler, int rangeStart, int rangeEnd)
        {
            try {
                if (compiler.Compile())
                {
                    IEnumerable <CallTreeNode> data = compiler.ExecuteQuery(provider, rangeStart, rangeEnd);
                                        #if DEBUG
                    data = data.WithQueryLog(Console.Out);
                                        #endif
                    var nodes = data.Select(i => new CallTreeNodeViewModel(i, null)).ToList();
                    return(new HierarchyList <CallTreeNodeViewModel>(nodes));
                }
            } catch (ObjectDisposedException) {
                return(null);
            }

            return(null);
        }