You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Standalone code, or other way to reproduce the problem
Run the following script:
<?hh //strict
class SimpleProps {
private string $prop1 = "one";
protected int $prop2 = 2;
public bool $prop3 = true;
}
<<__EntryPoint>>
function local_oom_cli(): void {
$ducks = ["quack"];
$string = 'thank_you_for_being_you';
$testclass = new SimpleProps();
$int_val = local_test_func();
$obj = heapgraph_create();
$stat = heapgraph_stats($obj);
var_dump($stat);
$n = heapgraph_node($obj, 1);
var_dump("vardump-ing nodes");
heapgraph_foreach_node($obj, "var_dump");
var_dump("vardump-ing objprof");
$obj_prof = objprof_get_data();
var_dump($obj_prof);
}
function local_test_func(): int {
return 1;
}
You will get the result (most nodes from heapgraph_foreach_node($obj, "var_dump"); removed, but there are many more String and other nodes with out a ton of other identifying information
I don't think we want to include objprof in this; I think we should view objprof as in maintenance mode only, and new feature development should focus on heapgraph.
HHVM Version
Standalone code, or other way to reproduce the problem
Run the following script:
You will get the result (most nodes from heapgraph_foreach_node($obj, "var_dump"); removed, but there are many more
String
and other nodes with out a ton of other identifying informationIt would be nice if
A) heapgraph could include var names in nodes so we can tie those to vars much like one can with classes
B) if obj prof could do the same
https://github.com/facebook/hhvm/tree/master/hphp/runtime/ext/objprof
I spoke with Alex Toptygin and he suggested this might be possible.
The text was updated successfully, but these errors were encountered: