Audacity 3.2.0
Classes | Macros | Enumerations | Functions
Benchmark.cpp File Reference
#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/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 "SampleBlock.h"
#include "ShuttleGui.h"
#include "Project.h"
#include "WaveClip.h"
#include "WaveTrack.h"
#include "Sequence.h"
#include "Prefs.h"
#include "ProjectRate.h"
#include "ViewInfo.h"
#include "FileNames.h"
#include "SelectFile.h"
#include "widgets/AudacityMessageBox.h"
#include "widgets/wxPanelWrapper.h"
Include dependency graph for Benchmark.cpp:

Go to the source code of this file.

Classes

class  BenchmarkDialog
 BenchmarkDialog is used for measuring performance and accuracy of sample block storage. More...
 

Macros

#define SampleType   short
 
#define SampleFormat   int16Sample
 

Enumerations

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

Functions

void RunBenchmark (wxWindow *parent, AudacityProject &project)
 

Macro Definition Documentation

◆ SampleFormat

#define SampleFormat   int16Sample

Definition at line 54 of file Benchmark.cpp.

◆ SampleType

#define SampleType   short

Definition at line 53 of file Benchmark.cpp.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
RunID 
BSaveID 
ClearID 
StaticTextID 
BlockSizeID 
DataSizeID 
NumEditsID 
RandSeedID 

Definition at line 122 of file Benchmark.cpp.

122 {
123 RunID = 1000,
124 BSaveID,
125 ClearID,
131};
@ StaticTextID
Definition: Benchmark.cpp:126
@ ClearID
Definition: Benchmark.cpp:125
@ NumEditsID
Definition: Benchmark.cpp:129
@ BlockSizeID
Definition: Benchmark.cpp:127
@ DataSizeID
Definition: Benchmark.cpp:128
@ BSaveID
Definition: Benchmark.cpp:124
@ RunID
Definition: Benchmark.cpp:123
@ RandSeedID
Definition: Benchmark.cpp:130

Function Documentation

◆ RunBenchmark()

void RunBenchmark ( wxWindow *  parent,
AudacityProject project 
)

Definition at line 95 of file Benchmark.cpp.

96{
97 /*
98 int action = AudacityMessageBox(
99XO("This will close all project windows (without saving)\nand open the Audacity Benchmark dialog.\n\nAre you sure you want to do this?"),
100 XO("Benchmark"),
101 wxYES_NO | wxICON_EXCLAMATION,
102 NULL);
103
104 if (action != wxYES)
105 return;
106
107 for ( auto pProject : AllProjects{} )
108 GetProjectFrame( *pProject ).Close();
109 */
110
111 BenchmarkDialog dlog{ parent, project };
112
113 dlog.CentreOnParent();
114
115 dlog.ShowModal();
116}
BenchmarkDialog is used for measuring performance and accuracy of sample block storage.
Definition: Benchmark.cpp:57

Referenced by AudacityApp::InitPart2(), and PluginActions::Handler::OnBenchmark().

Here is the caller graph for this function: