{"id":20474161,"url":"https://github.com/marschall/object-size","last_synced_at":"2026-04-19T00:04:32.864Z","repository":{"id":250455936,"uuid":"834522275","full_name":"marschall/object-size","owner":"marschall","description":"Uses IterateOverObjectsReachableFromObject to compute java object size","archived":false,"fork":false,"pushed_at":"2024-07-28T14:15:24.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-16T02:44:47.285Z","etag":null,"topics":["java","jvmti","object-graph","object-si"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marschall.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-27T14:22:25.000Z","updated_at":"2024-07-28T14:15:27.000Z","dependencies_parsed_at":"2024-11-15T14:30:57.013Z","dependency_job_id":"9e0d70f9-71b3-4e06-a22b-9d0fd15e433e","html_url":"https://github.com/marschall/object-size","commit_stats":null,"previous_names":["marschall/object-size"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marschall%2Fobject-size","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marschall%2Fobject-size/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marschall%2Fobject-size/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marschall%2Fobject-size/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marschall","download_url":"https://codeload.github.com/marschall/object-size/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242039718,"owners_count":20061928,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["java","jvmti","object-graph","object-si"],"created_at":"2024-11-15T14:28:26.369Z","updated_at":"2026-04-19T00:04:32.810Z","avatar_url":"https://github.com/marschall.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"Java Object Graph Size\n======================\n\nUses [IterateOverObjectsReachableFromObject](https://docs.oracle.com/en/java/javase/21/docs/specs/jvmti.html#IterateOverObjectsReachableFromObject) to compute the size of an object and all the objects reachable from it.\n\n\n\u003e During the execution of this function the state of the heap does not change: no objects are allocated, no objects are garbage collected, and the state of objects (including held values) does not change. As a result, threads executing Java programming language code, threads attempting to resume the execution of Java programming language code, and threads attempting to execute JNI functions are typically stalled.\n\nIf JFR is present we additionally generate a JFR event allowing you to assess the overhead.\n\nUsage\n-----\n\nThe native agent has to be loaded using a JVM option.\n\n```\n-agentpath:/path/to/libobject-size-agent.so\n```\n\nThen it can be used from Java\n\n```java\nObjectSizeCalculator.getInstance().getObjectSize(myObject);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarschall%2Fobject-size","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarschall%2Fobject-size","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarschall%2Fobject-size/lists"}