Mercurial > hg > CbC > CbC_gcc
comparison gcc/gcov-io.h @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 84e7813d76e9 |
children |
comparison
equal
deleted
inserted
replaced
131:84e7813d76e9 | 145:1830386684a0 |
---|---|
1 /* File format for coverage information | 1 /* File format for coverage information |
2 Copyright (C) 1996-2018 Free Software Foundation, Inc. | 2 Copyright (C) 1996-2020 Free Software Foundation, Inc. |
3 Contributed by Bob Manson <manson@cygnus.com>. | 3 Contributed by Bob Manson <manson@cygnus.com>. |
4 Completely remangled by Nathan Sidwell <nathan@codesourcery.com>. | 4 Completely remangled by Nathan Sidwell <nathan@codesourcery.com>. |
5 | 5 |
6 This file is part of GCC. | 6 This file is part of GCC. |
7 | 7 |
264 | 264 |
265 /* Number of counters used for value profiling. */ | 265 /* Number of counters used for value profiling. */ |
266 #define GCOV_N_VALUE_COUNTERS \ | 266 #define GCOV_N_VALUE_COUNTERS \ |
267 (GCOV_LAST_VALUE_COUNTER - GCOV_FIRST_VALUE_COUNTER + 1) | 267 (GCOV_LAST_VALUE_COUNTER - GCOV_FIRST_VALUE_COUNTER + 1) |
268 | 268 |
269 /* The number of hottest callees to be tracked. */ | 269 /* Number of top N value histogram. */ |
270 #define GCOV_ICALL_TOPN_VAL 2 | 270 #define GCOV_TOPN_VALUES 4 |
271 | 271 |
272 /* The number of counter entries per icall callsite. */ | 272 /* Total number of single value counters. */ |
273 #define GCOV_ICALL_TOPN_NCOUNTS (1 + GCOV_ICALL_TOPN_VAL * 4) | 273 #define GCOV_TOPN_VALUES_COUNTERS (2 * GCOV_TOPN_VALUES + 1) |
274 | 274 |
275 /* Convert a counter index to a tag. */ | 275 /* Convert a counter index to a tag. */ |
276 #define GCOV_TAG_FOR_COUNTER(COUNT) \ | 276 #define GCOV_TAG_FOR_COUNTER(COUNT) \ |
277 (GCOV_TAG_COUNTER_BASE + ((gcov_unsigned_t)(COUNT) << 17)) | 277 (GCOV_TAG_COUNTER_BASE + ((gcov_unsigned_t)(COUNT) << 17)) |
278 /* Convert a tag to a counter. */ | 278 /* Convert a tag to a counter. */ |