Ejemplo n.º 1
0
        private void iPG_SourceData_Log_CloseFromNext(SymWizardPageTransitionEvent aEventArgs)
        {
            string logFileName = iPG_SourceData_Log_FB.EntityName;

            if (!iPG_SourceData_Log_FB.IsValid)
            {
                aEventArgs.SuggestedNewPage = iPG_SourceData_Log;
            }
            else
            {
                iSettings.Save("Wizard", iPG_SourceData_Log_FB);
                //
                iEngine.HeapDataOptions = new Options();
                //
                DataSourceAnalyser analyser = HeapReconstructorDataSourceAnalyserDialog.Analyse(logFileName);
                SeedAnalysisFiltersAfterDataSourceScan(analyser.DataSources, iPG302_Combo_Filter);

                // Only allowed to continue if we found a valid source
                if (iPG302_Combo_Filter.Items.Count > 0)
                {
                    aEventArgs.SuggestedNewPage = iPG_Cmn_Symbolics;
                }
                else
                {
                    aEventArgs.SuggestedNewPage = aEventArgs.CurrentPage;
                }
            }
        }
Ejemplo n.º 2
0
        private void iPG202_TB_LogFile1_FileSelectionChanged(SymbianUtilsUi.Controls.SymbianFileControl aSelf, string aFileName)
        {
            DataSourceAnalyser analyser = HeapReconstructorDataSourceAnalyserDialog.Analyse(aFileName);

            SeedAnalysisFiltersAfterDataSourceScan(analyser.DataSources, iPG202_Combo_ThreadName1);

            iPG_SourceData_CompareHeapData_GP_Log2.Enabled = (iPG202_Combo_ThreadName1.Items.Count > 0);
        }
Ejemplo n.º 3
0
        private DataSource PrepareDataSource(string aFileName)
        {
            DataSourceAnalyser   analyser = HeapReconstructorDataSourceAnalyserDialog.Analyse(aFileName);
            DataSourceCollection sources  = analyser.DataSources;
            DataSource           source   = sources[iInputs.ThreadName];

            if (source == null)
            {
                throw new HAUIException("Thread was not found in source data", HAUIException.KErrCommandLineAnalysisThreadNameInvalid);
            }
            //
            return(source);
        }
Ejemplo n.º 4
0
        private void iPG202_TB_LogFile2_FileSelectionChanged(SymbianUtilsUi.Controls.SymbianFileControl aSelf, string aFileName)
        {
            DataSourceAnalyser analyser = HeapReconstructorDataSourceAnalyserDialog.Analyse(aFileName);

            // Get the master thread name
            string threadName = ThreadNameFromFilterCombo(iPG202_Combo_ThreadName1);

            if (threadName != string.Empty)
            {
            }
            else
            {
                analyser.DataSources.Clear();
            }

            // Seed combobox with filter options
            SeedAnalysisFiltersAfterDataSourceScan(analyser.DataSources, iPG202_Combo_ThreadName2);
        }