New profiler API.

This commit is contained in:
Maxim Poliakovski
2021-04-14 01:27:07 +02:00
parent 0375b6a687
commit 31b5290ac9
6 changed files with 174 additions and 1 deletions
+4
View File
@@ -26,6 +26,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
#include "execution/interpreter_loop.h"
#include "machines/machinefactory.h"
#include "machines/machineproperties.h"
#include "utils/profiler.h"
#include "ppcemu.h"
#include <cinttypes>
#include <cstring>
@@ -153,6 +154,9 @@ int main(int argc, char** argv) {
cout << "BootROM path: " << bootrom_path << endl;
cout << "Execution mode: " << execution_mode << endl;
// initialize global profiler object
gProfilerObj.reset(new Profiler());
if (create_machine_for_id(machine_str, bootrom_path) < 0) {
goto bail;
}