Coverage Report

Created: 2026-02-14 06:19

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/guetzli/guetzli/stats.h
Line
Count
Source
1
/*
2
 * Copyright 2016 Google Inc.
3
 *
4
 * Licensed under the Apache License, Version 2.0 (the "License");
5
 * you may not use this file except in compliance with the License.
6
 * You may obtain a copy of the License at
7
 *
8
 * http://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 * Unless required by applicable law or agreed to in writing, software
11
 * distributed under the License is distributed on an "AS IS" BASIS,
12
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 * See the License for the specific language governing permissions and
14
 * limitations under the License.
15
 */
16
17
#ifndef GUETZLI_STATS_H_
18
#define GUETZLI_STATS_H_
19
20
#include <cstdio>
21
#include <map>
22
#include <string>
23
#include <utility>
24
#include <vector>
25
26
27
namespace guetzli {
28
29
static const char* const  kNumItersCnt = "number of iterations";
30
static const char* const kNumItersUpCnt = "number of iterations up";
31
static const char* const kNumItersDownCnt = "number of iterations down";
32
33
struct ProcessStats {
34
2.47k
  ProcessStats() {}
35
  std::map<std::string, int> counters;
36
  std::string* debug_output = nullptr;
37
  FILE* debug_output_file = nullptr;
38
39
  std::string filename;
40
};
41
42
}  // namespace guetzli
43
44
#endif  // GUETZLI_STATS_H_