jdk.jfr.internal.MetadataDescriptor.Attribute Java Examples

The following examples show how to use jdk.jfr.internal.MetadataDescriptor.Attribute. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MetadataWriter.java    From dragonwell8_jdk with GNU General Public License v2.0 5 votes vote down vote up
private void buildStringPool(Element element, Set<String> pool) {
    pool.add(element.name);
    for (Attribute a : element.attributes) {
        pool.add(a.name);
        pool.add(a.value);
    }
    for (Element child : element.elements) {
        buildStringPool(child, pool);
    }
}
 
Example #2
Source File: MetadataWriter.java    From dragonwell8_jdk with GNU General Public License v2.0 5 votes vote down vote up
private void write(DataOutput output,Element element, HashMap<String, Integer> lookup) throws IOException {
    writeInt(output, lookup.get(element.name));
    writeInt(output, element.attributes.size());
    for (Attribute a : element.attributes) {
        writeInt(output, lookup.get(a.name));
        writeInt(output, lookup.get(a.value));
    }
    writeInt(output, element.elements.size());
    for (Element child : element.elements) {
        write(output, child, lookup);
    }
}
 
Example #3
Source File: MetadataWriter.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
private void buildStringPool(Element element, Set<String> pool) {
    pool.add(element.name);
    for (Attribute a : element.attributes) {
        pool.add(a.name);
        pool.add(a.value);
    }
    for (Element child : element.elements) {
        buildStringPool(child, pool);
    }
}
 
Example #4
Source File: MetadataWriter.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
private void write(DataOutput output,Element element, HashMap<String, Integer> lookup) throws IOException {
    writeInt(output, lookup.get(element.name));
    writeInt(output, element.attributes.size());
    for (Attribute a : element.attributes) {
        writeInt(output, lookup.get(a.name));
        writeInt(output, lookup.get(a.value));
    }
    writeInt(output, element.elements.size());
    for (Element child : element.elements) {
        write(output, child, lookup);
    }
}
 
Example #5
Source File: MetadataWriter.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
private void buildStringPool(Element element, Set<String> pool) {
    pool.add(element.name);
    for (Attribute a : element.attributes) {
        pool.add(a.name);
        pool.add(a.value);
    }
    for (Element child : element.elements) {
        buildStringPool(child, pool);
    }
}
 
Example #6
Source File: MetadataWriter.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
private void write(DataOutput output,Element element, HashMap<String, Integer> lookup) throws IOException {
    writeInt(output, lookup.get(element.name));
    writeInt(output, element.attributes.size());
    for (Attribute a : element.attributes) {
        writeInt(output, lookup.get(a.name));
        writeInt(output, lookup.get(a.value));
    }
    writeInt(output, element.elements.size());
    for (Element child : element.elements) {
        write(output, child, lookup);
    }
}