Fix Python metrics in Trace Analyzer
This commit is contained in:
@@ -112,7 +112,7 @@ def maximum_data_rate(connection):
|
||||
# Backwards compatibility for traces where clkMHz was not yet replaced with tCK
|
||||
clk = None
|
||||
try:
|
||||
clk = 1000000 / memspec.getIntValue("memtimingspec", "tCK")
|
||||
clk = 1000000 / memspec.jsonMemSpec['memspec']['memtimingspec']['tCK']
|
||||
except:
|
||||
clk = memspec.getIntValue("memtimingspec", "clkMhz")
|
||||
|
||||
|
||||
@@ -37,11 +37,14 @@
|
||||
* Derek Christ
|
||||
*/
|
||||
|
||||
#include "pythoncaller.h"
|
||||
#include <exception>
|
||||
#include <iostream>
|
||||
// Has to come first.
|
||||
#include <pybind11/pybind11.h>
|
||||
#include <pybind11/stl.h>
|
||||
|
||||
#include "pythoncaller.h"
|
||||
|
||||
#include <exception>
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
std::string PythonCaller::generatePlots(std::string_view pathToTrace)
|
||||
|
||||
@@ -40,11 +40,6 @@
|
||||
#ifndef PYTHONCALLER_H
|
||||
#define PYTHONCALLER_H
|
||||
|
||||
// Workaround for CMAKE and Python
|
||||
#ifdef slots
|
||||
#undef slots
|
||||
#endif
|
||||
|
||||
#include "businessObjects/tracecalculatedmetrics.h"
|
||||
#include <string>
|
||||
|
||||
|
||||
@@ -36,6 +36,9 @@
|
||||
* Derek Christ
|
||||
*/
|
||||
|
||||
// Has to come first.
|
||||
#include <pybind11/embed.h>
|
||||
|
||||
#include "traceanalyzer.h"
|
||||
|
||||
#include <QApplication>
|
||||
@@ -46,7 +49,6 @@
|
||||
#include <csignal>
|
||||
#include <filesystem>
|
||||
#include <iostream>
|
||||
#include <pybind11/embed.h>
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user