blob: 7e5ac448cd37298f4bb92a3ea1b9e38a2f40bffa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#ifndef CACHEDOCK_H
#define CACHEDOCK_H
#include <QDockWidget>
#include <QLabel>
#include <QFormLayout>
#include "cacheview.h"
#include "graphicsview.h"
#include "qtmipsmachine.h"
class CacheDock : public QDockWidget {
Q_OBJECT
public:
CacheDock(QWidget *parent, const QString &type);
void setup(const machine::Cache *cache);
private slots:
void hit_update(unsigned);
void miss_update(unsigned);
void statistics_update(unsigned stalled_cycles, double speed_improv, double usage_effic);
private:
QVBoxLayout *layout_box;
QWidget *top_widget, *top_form;
QFormLayout *layout_top_form;
QLabel *l_hit, *l_miss, *l_stalled, *l_speed, *l_usage, *no_cache;
GraphicsView *graphicsview;
CacheViewScene *cachescene;
};
#endif // CACHEDOCK_H
|