[ OEMCrypto Profiler ] Removed Call Table
This is a merge of go/wvgerrit/22627 The call table was meant to be a long-term way to track the performance of all OEMCrypto function calls. This feature does not get used. Apps that call into the profiler can generate this from the history. This change was designed to go into Android O (go/wvgerrit/22503) but since the Call Table is causing problems on specific chip sets its being removed in NYC MR2. Bug: 33550032 Bug: 33459261 Change-Id: I2af417a32452e7d0d0a1ada8794efd849c497dc8
This commit is contained in:
@@ -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
|
||||
@@ -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_;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user