Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
JDK 11 jdk.jfr.jmod - JFR Module
JDK 11 jdk.jfr.jmod is the JMOD file for JDK 11 JFR module.
JDK 11 JFR module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\jdk.jfr.jmod.
JDK 11 JFR module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 JFR module source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\jdk.jfr.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ jdk/jfr/internal/dcmd/DCmdCheck.java
/* * Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package jdk.jfr.internal.dcmd; import java.time.Duration; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.Comparator; import java.util.List; import java.util.Map; import java.util.StringJoiner; import jdk.jfr.EventType; import jdk.jfr.Recording; import jdk.jfr.SettingDescriptor; import jdk.jfr.internal.LogLevel; import jdk.jfr.internal.LogTag; import jdk.jfr.internal.Logger; /** * JFR.check - invoked from native * */ final class DCmdCheck extends AbstractDCmd { /** * Execute JFR.check * * @param recordingText name or id of the recording to check, or * <code>null</code> to show a list of all recordings. * * @param verbose if event settings should be included. * * @return result output * * @throws DCmdException if the check could not be completed. */ public String execute(String recordingText, Boolean verbose) throws DCmdException { executeInternal(recordingText, verbose); return getResult(); } private void executeInternal(String name, Boolean verbose) throws DCmdException { if (LogTag.JFR_DCMD.shouldLog(LogLevel.DEBUG)) { Logger.log(LogTag.JFR_DCMD, LogLevel.DEBUG, "Executing DCmdCheck: name=" + name + ", verbose=" + verbose); } if (verbose == null) { verbose = Boolean.FALSE; } if (name != null) { printRecording(findRecording(name), verbose); return; } List<Recording> recordings = getRecordings(); if (!verbose && recordings.isEmpty()) { println("No available recordings."); println(); println("Use jcmd " + getPid() + " JFR.start to start a recording."); return; } boolean first = true; for (Recording recording : recordings) { // Print separation between recordings, if (!first) { println(); if (Boolean.TRUE.equals(verbose)) { println(); } } first = false; printRecording(recording, verbose); } } private void printRecording(Recording recording, boolean verbose) { printGeneral(recording); if (verbose) { println(); printSetttings(recording); } } private void printGeneral(Recording recording) { print("Recording " + recording.getId() + ": name=" + recording.getName()); Duration duration = recording.getDuration(); if (duration != null) { print(" duration="); printTimespan(duration, ""); } long maxSize = recording.getMaxSize(); if (maxSize != 0) { print(" maxsize="); printBytes(maxSize, ""); } Duration maxAge = recording.getMaxAge(); if (maxAge != null) { print(" maxage="); printTimespan(maxAge, ""); } print(" (" + recording.getState().toString().toLowerCase() + ")"); println(); } private void printSetttings(Recording recording) { Map<String, String> settings = recording.getSettings(); for (EventType eventType : sortByEventPath(getFlightRecorder().getEventTypes())) { StringJoiner sj = new StringJoiner(",", "[", "]"); sj.setEmptyValue(""); for (SettingDescriptor s : eventType.getSettingDescriptors()) { String settingsPath = eventType.getName() + "#" + s.getName(); if (settings.containsKey(settingsPath)) { sj.add(s.getName() + "=" + settings.get(settingsPath)); } } String settingsText = sj.toString(); if (!settingsText.isEmpty()) { print(" %s (%s)", eventType.getLabel(), eventType.getName()); println(); println(" " + settingsText); } } } private static List<EventType> sortByEventPath(Collection<EventType> events) { List<EventType> sorted = new ArrayList<>(); sorted.addAll(events); Collections.sort(sorted, new Comparator<EventType>() { @Override public int compare(EventType e1, EventType e2) { return e1.getName().compareTo(e2.getName()); } }); return sorted; } }
⏎ jdk/jfr/internal/dcmd/DCmdCheck.java
Or download all of them as a single archive file:
File name: jdk.jfr-11.0.1-src.zip File size: 237632 bytes Release date: 2018-11-04 Download
⇒ JDK 11 jdk.jlink.jmod - JLink Tool
2020-06-30, 44133👍, 0💬
Popular Posts:
JDK 11 java.sql.rowset.jmod is the JMOD file for JDK 11 SQL Rowset module. JDK 11 SQL Rowset module ...
JRE 8 rt.jar is the JAR file for JRE 8 RT (Runtime) libraries. JRE (Java Runtime) 8 is the runtime e...
How to download and install iText7-Core-7.1.4.zip? iText7-Core-7.1.4.zip is the binary package of iT...
What Is activation.jar? I heard it's related to JAF (JavaBeans Activation Framework) 1.0.2? The if y...
Saxon is an open source product available under the Mozilla Public License. It provides implementati...