| 36 | constexpr uint64_t kAllocGranule = 2ull << 20; |
| 37 | constexpr uint64_t kSmallAlloc = 1ull << 20; |
| 38 | uint64_t alloc_bytes(uint64_t bytes) { |
| 39 | return bytes < kSmallAlloc ? bytes : (bytes + kAllocGranule - 1) / kAllocGranule * kAllocGranule; |
| 40 | } |
| 41 | int g_layer_lb = -1, g_layer_le = -1; // set_layer_range; -1: every layer |
| 42 | bool in_range(const std::string& name) { |
| 43 | if (g_layer_lb < 0 || name.rfind("blk.", 0) != 0) return true; |
no outgoing calls
no test coverage detected