Skip to content

Commit

Permalink
Remove unnecessary # from some keys
Browse files Browse the repository at this point in the history
  • Loading branch information
sj-i committed Nov 23, 2023
1 parent 7b82977 commit 7734f9d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/memory-profiler.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ And the output is like below. The target process is [psalm](https://github.com/v
"0": {
"#node_id": 1,
"#type": "CallFrameContext",
"#function_name": "Psalm\\IssueBuffer::finish",
"function_name": "Psalm\\IssueBuffer::finish",
"local_variables": {
"#node_id": 2,
"#type": "CallFrameVariableTableContext",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function __construct(
public function getContexts(): iterable
{
return [
'#function_name' => $this->function_name,
'function_name' => $this->function_name,
];
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function __construct(
public function getContexts(): iterable
{
return [
'#value' => $this->value,
'value' => $this->value,
];
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public function wait($input): void {
);
$this->assertSame(
'fgets',
$contexts_analyzed['call_frames']['0']['#function_name']
$contexts_analyzed['call_frames']['0']['function_name']
);
$this->assertSame(
'ResourceContext',
Expand All @@ -212,7 +212,7 @@ public function wait($input): void {
['array_elements']
['dynamic_property']
['value']
['#value']
['value']
);
$this->assertSame(
123,
Expand All @@ -224,7 +224,7 @@ public function wait($input): void {
['array_elements']
['0']
['value']
['#value']
['value']
);
$this->assertSame(
456,
Expand All @@ -235,11 +235,11 @@ public function wait($input): void {
['array_elements']
['extra']
['value']
['#value']
['value']
);
$this->assertSame(
'A::wait',
$contexts_analyzed['call_frames']['2']['#function_name']
$contexts_analyzed['call_frames']['2']['function_name']
);
$this->assertSame(
$contexts_analyzed['call_frames']['3']['symbol_table']['array_elements']['object']['value']['#node_id'],
Expand Down Expand Up @@ -288,7 +288,7 @@ public function wait($input): void {
['array_elements']
['test_static_variable']
['value']
['#value']
['value']
);
$this->assertSame(
1,
Expand Down

0 comments on commit 7734f9d

Please sign in to comment.