~ubuntu-branches/ubuntu/raring/codeblocks/raring-proposed

« back to all changes in this revision

Viewing changes to src/plugins/contrib/profiler/cbprofiler.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Cosme Domínguez Díaz
  • Date: 2010-08-09 04:38:38 UTC
  • mfrom: (1.1.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20100809043838-a59ygguym4eg0jgw
Tags: 10.05-0ubuntu1
* New upstream release. Closes (LP: #322350)
 - Switch to dpkg-source 3.0 (quilt) format
 - Remove unneeded README.source
 - Add debian/get-source-orig script that removes all
   Windows prebuilt binaries
* Bump Standards-Version to 3.9.1
 - Stop shipping *.la files
* debian/control
 - Add cdbs package as Build-Depend
 - Add libbz2-dev and zlib1g-dev packages as
   Build-Depends (needed by libhelp_plugin.so)
 - Remove dpatch package of Build-Depends
 - Add codeblocks-contrib-debug package
 - Split architecture-independent files of codeblocks
   package in codeblocks-common package
* debian/rules
 - Switch to CDBS rules system
 - Add parallel build support
 - Add a call to debian/get-source-orig script
 - Use lzma compression (saves 23,5 MB of free space)
* debian/patches
 - Refresh 01_codeblocks_plugin_path
 - Add 02_no_Makefiles_in_debian_dir to remove any link
   in codeblocks build system to deleted Makefiles of debian directory
 - Drop 02_ftbfs_gcc44 and 03_ftbfs_glib221 (merged in upstream)
* debian/watch
 - Update to use the new host (berlios.de)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 * This file is part of the Code::Blocks IDE and licensed under the GNU General Public License, version 3
3
3
 * http://www.gnu.org/licenses/gpl-3.0.html
4
4
 *
5
 
 * $Revision: 4909 $
6
 
 * $Id: cbprofiler.cpp 4909 2008-02-27 13:15:26Z mortenmacfly $
7
 
 * $HeadURL: svn://svn.berlios.de/codeblocks/tags/8.02/src/plugins/contrib/profiler/cbprofiler.cpp $
 
5
 * $Revision: 5854 $
 
6
 * $Id: cbprofiler.cpp 5854 2009-10-09 05:26:51Z mortenmacfly $
 
7
 * $HeadURL: svn+ssh://jenslody@svn.berlios.de/svnroot/repos/codeblocks/trunk/src/plugins/contrib/profiler/cbprofiler.cpp $
8
8
 */
9
9
 
10
10
#include "sdk.h"
45
45
        NotifyMissingFile(_T("Profiler.zip"));
46
46
    }
47
47
}
 
48
 
48
49
CBProfiler::~CBProfiler()
49
50
{
50
51
    //dtor
51
52
}
 
53
 
52
54
void CBProfiler::OnAttach()
53
55
{
54
56
    // do whatever initialization you need for your plugin
58
60
    // is FALSE, it means that the application did *not* "load"
59
61
    // (see: does not need) this plugin...
60
62
}
 
63
 
61
64
void CBProfiler::OnRelease(bool appShutDown)
62
65
{
63
66
    // do de-initialization for your plugin
66
69
    // NOTE: after this function, the inherited member variable
67
70
    // IsAttached() will be FALSE...
68
71
}
 
72
 
69
73
cbConfigurationPanel* CBProfiler::GetConfigurationPanel(wxWindow* parent)
70
74
{
71
75
    // if not attached, exit
75
79
    CBProfilerConfigDlg* dlg = new CBProfilerConfigDlg(parent);
76
80
    return dlg;
77
81
}
 
82
 
78
83
int CBProfiler::Execute()
79
84
{
80
85
    // if not attached, exit
188
193
                else
189
194
                {
190
195
                    wxFileDialog filedialog(Manager::Get()->GetAppWindow(), _("Locate profile information"),
191
 
                                            _T(""),_T("gmon.out"),_T("*.*"),wxOPEN|wxFILE_MUST_EXIST|compatibility::wxHideReadonly);
 
196
                                            _T(""),_T("gmon.out"),_T("*.*"),wxFD_OPEN|wxFD_FILE_MUST_EXIST|compatibility::wxHideReadonly);
192
197
                    if (filedialog.ShowModal() == wxID_OK)
193
198
                    {
194
199
                        dataname = filedialog.GetPath();
222
227
 
223
228
    // Loading configuration
224
229
    struct_config config;
225
 
    config.chkAnnSource = cfg->ReadBool(_T("/ann_source_chk"), false);
226
 
    config.txtAnnSource = cfg->Read(_T("/ann_source_txt"), wxEmptyString);
227
 
    config.chkMinCount  = cfg->ReadBool(_T("/min_count_chk"), false);
228
 
    config.spnMinCount  = cfg->ReadInt(_T("/min_count_spn"), 0);
229
 
    config.chkBrief     = cfg->ReadBool(_T("/brief"), false);
230
 
    config.chkFileInfo  = cfg->ReadBool(_T("/file_info"), false);
231
 
    config.chkNoStatic  = cfg->ReadBool(_T("/no_static"), false);
232
 
    config.chkMinCount  = cfg->ReadBool(_T("/min_count_chk"), false);
233
 
    config.chkSum       = cfg->ReadBool(_T("/sum"), false);
234
 
    config.txtExtra     = cfg->Read(_T("/extra_txt"), wxEmptyString);
 
230
    config.chkAnnSource        = cfg->ReadBool(_T("/ann_source_chk"), false);
 
231
    config.txtAnnSource        = cfg->Read(_T("/ann_source_txt"), wxEmptyString);
 
232
    config.chkMinCount         = cfg->ReadBool(_T("/min_count_chk"), false);
 
233
    config.spnMinCount         = cfg->ReadInt(_T("/min_count_spn"), 0);
 
234
    config.chkBrief            = cfg->ReadBool(_T("/brief"), false);
 
235
    config.chkFileInfo         = cfg->ReadBool(_T("/file_info"), false);
 
236
    config.chkUnusedFunctions  = cfg->ReadBool(_T("/unused_functions"), false);
 
237
    config.chkStaticCallGraph  = cfg->ReadBool(_T("/static_call_graph"), false);
 
238
    config.chkNoStatic         = cfg->ReadBool(_T("/no_static"), false);
 
239
    config.chkMinCount         = cfg->ReadBool(_T("/min_count_chk"), false);
 
240
    config.chkSum              = cfg->ReadBool(_T("/sum"), false);
 
241
    config.txtExtra            = cfg->Read(_T("/extra_txt"), wxEmptyString);
235
242
 
236
243
    // If we got this far, all is left is to call gprof!!!
237
244
    dlg = new CBProfilerExecDlg(Manager::Get()->GetAppWindow());