17#ifdef SK_BUILD_FOR_WIN
18 static const char*
kBars[] = {
".",
"o",
"O" };
20 static const char*
kBars[] = {
"▁",
"▂",
"▃",
"▄",
"▅",
"▆",
"▇",
"█" };
25 int n = samples.
size();
33 for (
int i = 0;
i < n;
i++) {
34 if (samples[
i] <
min) {
min = samples[
i]; }
35 if (samples[
i] >
max) {
max = samples[
i]; }
39 for (
int i = 0 ;
i < n;
i++) {
45 for (
int i = 0 ;
i < n;
i++) {
46 err += (samples[
i] -
mean) * (samples[
i] -
mean);
50 std::vector<double> sorted(samples.
begin(), samples.
end());
55 for (
int i = 0; want_plot &&
i < n;
i++) {
62 double s = samples[
i];
66 const size_t bar = (size_t)(
s + 0.5);
#define SkASSERT_RELEASE(cond)
static constexpr double sk_ieee_double_divide(double numer, double denom)
static std::vector< SkPDFIndirectReference > sort(const THashSet< SkPDFIndirectReference > &src)
static const char * kBars[]
void append(const char text[])
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
Stats(const skia_private::TArray< double > &samples, bool want_plot)