Closed dustinbyrne closed 2 years ago
This looks good, I think it’s worth a test case to show that the field accessors and JSON work as expected.
I moved the cloning logic out into it's own file because it should really reside in @appland/models anyway. I also added some tests to validate that the cloned object performs in the same manner as the source object.
:tada: This PR is included in version 1.40.3 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Previously, event references in findings would cause entire AppMaps to stay loaded into memory. With this change we now create a shallow copy of Event objects to break these references.
I was able to confirm that the memory usage no longer grows dramatically with each AppMap scanned via the node inspector built into Chrome. In my local testing, total heap size drops from ~250MB to ~35MB after a full
ci
run.