Audacity  2.2.2
Classes | Enumerations | Functions
Benchmark.cpp File Reference
#include "Audacity.h"
#include "Benchmark.h"
#include <wx/app.h>
#include <wx/log.h>
#include <wx/textctrl.h>
#include <wx/button.h>
#include <wx/checkbox.h>
#include <wx/choice.h>
#include <wx/dialog.h>
#include <wx/filedlg.h>
#include <wx/sizer.h>
#include <wx/stattext.h>
#include <wx/timer.h>
#include <wx/utils.h>
#include <wx/valgen.h>
#include <wx/valtext.h>
#include <wx/intl.h>
#include "ShuttleGui.h"
#include "Project.h"
#include "WaveTrack.h"
#include "Sequence.h"
#include "Prefs.h"
#include "FileNames.h"
#include "widgets/ErrorDialog.h"

Go to the source code of this file.

Classes

class  BenchmarkDialog
 BenchmarkDialog is used for measuring performance and accuracy of the BlockFile system. More...
 

Enumerations

enum  {
  RunID = 1000, BSaveID, ClearID, StaticTextID,
  BlockSizeID, DataSizeID, NumEditsID, RandSeedID
}
 

Functions

void RunBenchmark (wxWindow *parent)
 

Enumeration Type Documentation

anonymous enum
Enumerator
RunID 
BSaveID 
ClearID 
StaticTextID 
BlockSizeID 
DataSizeID 
NumEditsID 
RandSeedID 

Definition at line 108 of file Benchmark.cpp.

108  {
109  RunID = 1000,
110  BSaveID,
111  ClearID,
112  StaticTextID,
113  BlockSizeID,
114  DataSizeID,
115  NumEditsID,
116  RandSeedID
117 };

Function Documentation

void RunBenchmark ( wxWindow *  parent)

Definition at line 82 of file Benchmark.cpp.

Referenced by AudacityProject::OnBenchmark(), and AudacityApp::OnInit().

83 {
84  /*
85  int action = AudacityMessageBox(
86 _("This will close all project windows (without saving)\nand open the Audacity Benchmark dialog.\n\nAre you sure you want to do this?"),
87  _("Benchmark"),
88  wxYES_NO | wxICON_EXCLAMATION,
89  NULL);
90 
91  if (action != wxYES)
92  return;
93 
94  CloseAllProjects();
95  */
96 
97  BenchmarkDialog dlog(parent);
98 
99  dlog.CentreOnParent();
100 
101  dlog.ShowModal();
102 }
BenchmarkDialog is used for measuring performance and accuracy of the BlockFile system.
Definition: Benchmark.cpp:46