{"id":65333,"library":"java-allocation-instrumenter","title":"Java Allocation Instrumenter","description":"Java agent that rewrites bytecode to instrument object allocation sites.","status":"active","version":"3.3.5","language":"java","source_language":null,"source_url":"https://github.com/google/allocation-instrumenter","tags":["allocation","instrumentation","agent","bytecode"],"install":[{"cmd":"<dependency>\n  <groupId>com.google.code.java-allocation-instrumenter</groupId>\n  <artifactId>java-allocation-instrumenter</artifactId>\n  <version>3.3.5</version>\n</dependency>","lang":"xml","label":"Maven"},{"cmd":"implementation 'com.google.code.java-allocation-instrumenter:java-allocation-instrumenter:3.3.5'","lang":"groovy","label":"Gradle"}],"dependencies":[],"imports":[{"symbol":"AllocationInstrumenter","correct":"com.google.code.java_allocation_instrumenter.AllocationInstrumenter"}],"quickstart":{"code":"import com.google.code.java_allocation_instrumenter.AllocationInstrumenter;\n\npublic class Example {\n    public static void main(String[] args) throws Exception {\n        AllocationInstrumenter.premain(null, null);\n        System.out.println(\"Instrumentation agent loaded\");\n    }\n}","lang":"java","description":"Loads the allocation instrumenter agent."},"warnings":[{"fix":"Add -javaagent:path/to/java-allocation-instrumenter.jar to JVM arguments.","message":"Requires JVM agent startup; cannot be used as a regular library.","severity":"gotcha","affected_versions":"*"}],"env_vars":null,"search_vec":"'agent':5,16 'alloc':2,12,14 'bytecod':8,17 'instrument':3,10,15 'java':1,4 'object':11 'rewrit':7 'site':13","created_at":"2026-06-17T17:08:50.449856+00:00","updated_at":"2026-06-17T17:08:50.449856+00:00","problems":[],"ecosystem":"maven","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/google/allocation-instrumenter/","github":"https://github.com/google/allocation-instrumenter","docs":"https://appdoc.app/artifact/com.google.code.java-allocation-instrumenter/java-allocation-instrumenter/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["observability"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}