histogram不知道是干啥的,从名字上看,像是记录运行的命令,类似linux的history命令,先看一下注释
// Histogram is an object that aggregates statistics, and can summarize them in // various forms, including ASCII graphical, HTML, and numerically (as a // vector of numbers corresponding to each of the aggregating buckets).
google翻译
//直方图是汇总统计信息的对象,可以将它们汇总 //各种形式,包括ASCII图形,HTML和数字(如 //每个聚合桶对应的数字向量)。
跟我想的不一样?不管了,看看怎么实现的,就知道是干嘛用的了。
瞄一下,有没有引用不认识的头文件
histogram.cc
#include "base/histogram.h" #include <math.h> #include <string> #include "base/logging.h" #include "base/pickle.h" #include "base/string_util.h"
有一个!
#include "base/pickle.h"
参见分析