[ OEMCrypto Profiler ] Removed Call Table am: 4ad500d878

am: 9ae9de59d4

Change-Id: Ic34ac456ba79b8fcdf215eb7174bfc40181d1974
This commit is contained in:
Aaron Vaage
2016-12-13 18:16:58 +00:00
committed by android-build-merger
7 changed files with 0 additions and 180 deletions

View File

@@ -1,49 +0,0 @@
#ifndef WVCDM_PROFILER_CALL_TABLE_H_
#define WVCDM_PROFILER_CALL_TABLE_H_
#include <map>
#include <stdint.h>
#include <vector>
namespace wvcdm {
namespace oemprofiler {
class CallTable {
public:
class Row {
public:
Row();
void Add(uint64_t sample);
uint64_t GetSampleSize() const;
uint64_t GetMin() const;
uint64_t GetMax() const;
double GetMean() const;
double GetVariance() const;
private:
uint64_t min_;
uint64_t max_;
uint64_t sample_size_;
double mean_;
double variance_m_;
double variance_s_;
};
const Row* LookUp(uint64_t row_id) const;
void Write(uint64_t row_id, uint64_t sample);
void Read(std::vector<uint8_t>& output) const;
private:
std::map<uint64_t, Row> map_;
};
} // namespace oemprofiler
} // namespace wvcdm
#endif

View File

@@ -3,7 +3,6 @@
#ifndef WVCDM_PROFILER_H_
#define WVCDM_PROFILER_H_
#include "call_table.h"
#include "call_history.h"
namespace wvcdm {
@@ -11,11 +10,9 @@ namespace oemprofiler {
class Profiler {
public:
static CallTable& GetTable();
static CallHistory& GetHistory();
private:
static CallTable global_table_;
static CallHistory global_history_;
};