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 17 jdk.jfr.jmod - JFR Module
JDK 17 jdk.jfr.jmod is the JMOD file for JDK 17 JFR module.
JDK 17 JFR module compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\jdk.jfr.jmod.
JDK 17 JFR module compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 JFR module source code files are stored in \fyicenter\jdk-17.0.5\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/tool/Main.java
/* * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package jdk.jfr.internal.tool; import java.util.Arrays; import java.util.Deque; import java.util.LinkedList; /** * Launcher class for the JDK_HOME\bin\jfr tool * */ public final class Main { private static final int EXIT_OK = 0; private static final int EXIT_FAILED = 1; private static final int EXIT_WRONG_ARGUMENTS = 2; public static void main(String... args) { Deque<String> argList = new LinkedList<>(Arrays.asList(args)); if (argList.isEmpty()) { System.out.println(Command.title); System.out.println(); System.out.println("Before using this tool, you must have a recording file."); System.out.println("A file can be created by starting a recording from command line:"); System.out.println(); System.out.println(" java -XX:StartFlightRecording:filename=recording.jfr,duration=30s ... "); System.out.println(); System.out.println("A recording can also be started on already running Java Virtual Machine:"); System.out.println(); System.out.println(" jcmd (to list available pids)"); System.out.println(" jcmd <pid> JFR.start"); System.out.println(); System.out.println("Recording data can be dumped to file using the JFR.dump command:"); System.out.println(); System.out.println(" jcmd <pid> JFR.dump filename=recording.jfr"); System.out.println(); System.out.println("The contents of the recording can then be printed, for example:"); System.out.println(); System.out.println(" jfr print recording.jfr"); System.out.println(); System.out.println(" jfr print --events CPULoad,GarbageCollection recording.jfr"); System.out.println(); System.out.println(" jfr print --json --events CPULoad recording.jfr"); System.out.println(); char q = Print.quoteCharacter(); System.out.println(" jfr print --categories " + q + "GC,JVM,Java*" + q + " recording.jfr"); System.out.println(); System.out.println(" jfr print --events " + q + "jdk.*" + q + " --stack-depth 64 recording.jfr"); System.out.println(); System.out.println(" jfr summary recording.jfr"); System.out.println(); System.out.println(" jfr metadata recording.jfr"); System.out.println(); System.out.println(" jfr metadata --categories GC,Detailed"); System.out.println(); System.out.println("For more information about available commands, use 'jfr help'"); System.exit(EXIT_OK); } String command = argList.remove(); for (Command c : Command.getCommands()) { if (c.matches(command)) { try { c.execute(argList); System.exit(EXIT_OK); } catch (UserDataException ude) { System.err.println("jfr " + c.getName() + ": " + ude.getMessage()); System.exit(EXIT_FAILED); } catch (UserSyntaxException use) { System.err.println("jfr " + c.getName() + ": " + use.getMessage()); System.err.println(); System.err.println("Usage:"); System.err.println(); c.displayUsage(System.err); System.exit(EXIT_WRONG_ARGUMENTS); } catch (Throwable e) { System.err.println("jfr " + c.getName() + ": unexpected internal error, " + e.getMessage()); e.printStackTrace(); System.exit(EXIT_FAILED); } } } System.err.println("jfr: unknown command '" + command + "'"); System.err.println(); System.err.println("List of available commands:"); System.err.println(); Command.displayAvailableCommands(System.err); System.exit(EXIT_WRONG_ARGUMENTS); } }
⏎ jdk/jfr/internal/tool/Main.java
Or download all of them as a single archive file:
File name: jdk.jfr-17.0.5-src.zip File size: 363343 bytes Release date: 2022-09-13 Download
⇒ JDK 17 jdk.jlink.jmod - JLink Tool
2023-04-17, 8932👍, 0💬
Popular Posts:
SLF4J API is a simple API that allows to plug in any desired logging library at deployment time. Her...
A stream buffer is a stream-based representation of an XML infoset in Java. Stream buffers are desig...
How to download and install xml-commons External Source Package? The source package contains Java so...
How to download and install ojdbc11.jar for Oracle 21c? ojdbc11.jar for Oracle 21c is a Java JDBC Dr...
jlGui is a music player for the Java platform. It is based on Java Sound 1.0 (i.e. JDK 1.3+). It sup...