mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-03 22:02:51 +01:00
The output is really basic, I'm just adding this to help track how memory is allocated. ``` --- filename: 'check/testdata/expr_category/in_place_tuple_init.carbon' source_: used_bytes: 8057 reserved_bytes: 8057 tokens_.allocator_: used_bytes: 0 reserved_bytes: 0 tokens_.token_infos_: used_bytes: 1040 reserved_bytes: 2032 (eliding) value_stores_.string_literals_.set_: used_bytes: 320 reserved_bytes: 320 Total: used_bytes: 20609 reserved_bytes: 29437 ... ``` --------- Co-authored-by: josh11b <15258583+josh11b@users.noreply.github.com>
20 lines
540 B
Plaintext
20 lines
540 B
Plaintext
// Part of the Carbon Language project, under the Apache License v2.0 with LLVM
|
|
// Exceptions. See /LICENSE for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
// ARGS: compile --phase=check --dump-mem-usage %s
|
|
//
|
|
// NOAUTOUPDATE
|
|
//
|
|
// Avoid testing specific values:
|
|
// SET-CHECK-SUBSET
|
|
|
|
var x: i32 = 1;
|
|
|
|
// CHECK:STDOUT: ---
|
|
// CHECK:STDOUT: filename: dump_mem_usage.carbon
|
|
// CHECK:STDOUT: source_:
|
|
// CHECK:STDOUT: used_bytes: 0
|
|
// CHECK:STDOUT: reserved_bytes: 0
|
|
// CHECK:STDOUT: ...
|