Introduction
The best practices described in this document demonstrate the functions of each tool of the Kunpeng DevKit. You can refer to these best practices when analyzing and optimizing your development projects in the Kunpeng DevKit. See Table 1.
Tool |
Feature |
Best Practice |
Description |
|---|---|---|---|
Porting Advisor |
SMARTdenovo is a de novo sequence assembler for PacBio or Oxford Nanopore. It is open source software written in the C language. Use the Kunpeng DevKit Porting Advisor to analyze the SmartDenovo source package, helping to port applications. |
||
Megahit is an ultra-fast and memory-efficient NGS assembler optimized for metagenomes. Use the Kunpeng DevKit Porting Advisor to analyze the Megahit source package, helping to port applications. |
|||
The System Migration feature enables wizard-driven, automatic migration across databases, middleware, and applications. This practice illustrates how to migrate the open source Java project RuoYi. In this practice, you can experience automatic migration of MySQL, Nginx, and Tomcat, and manually perform data migration and SQL reconstruction. |
|||
The DevKit System Migration feature can package and upload source components and migrate the middleware. In this practice, the open source Nginx middleware is migrated. During the practice, the Nginx configuration on the source server is automatically applied to the Nginx configuration file on the target server. |
|||
Practice 3: Porting Decompiled Java Applications Without Source Code |
The DevKit System Migration feature can decompile applications whose source code is not available, and provide compilation guidance and application deployment capabilities. This practice provides guidance for identifying configuration items that need to be modified, decompiling Java class files to generate readable Java code, and migrating SQL statements within the application. |
||
Netty is an NIO-based client and server programming framework. Use the Kunpeng DevKit Porting Advisor for assessment before porting the Netty software package. |
|||
Practice 2: Assessing CMake Software Porting - Analyzing Software Packages |
CMake is an open source, cross-platform family of tools designed to build, test, and package software. Use the Porting Advisor for assessment before porting the CMake source package. |
||
Practice 3: Assessing Ragel Software Porting - Analyzing Installed Software |
Ragel is a finite-state machine compiler. It compiles regular expression–based state machines into parsers of traditional programming languages such as C, C++, D, Java, and Ruby. Use the Porting Advisor to assess installed Ragel software, helping to port installed applications. |
||
System Profiler |
Use the System Profiler to perform hotspot function analysis on Python string concatenation APIs, locate performance bottlenecks, and tune the performance of Python string concatenation based on the analysis result. |
||
Use the hotspot function analysis and lock and wait analysis functions of the System Profiler to sample and analyze multi-thread applications in the target environment, locate performance bottlenecks, and tune the application performance based on the analysis result. |
|||
Java Profiler |
Use the Java Profiler to perform real-time profiling and sampling profiling on a running Java program, locate program problems, and tune the program based on the analysis results to achieve optimal running of the Java program. |
||
Use the Java Profiler to perform garbage collection (GC) analysis on a running Java program, locate program GC problems, and tune the program based on the analysis results to achieve optimal running of the Java program. |
|||
Use the Java Profiler to perform hotspot function analysis on a running Java program, locate program hotspot problems, and tune the program based on the analysis results to achieve optimal running of the Java program. |
|||
Use the Java Profiler to perform thread dump (with CPU analysis) on a running Java program, locate program lock problems, and tune the program based on the analysis results to achieve optimal running of the Java program. |
|||
Use the Java Profiler to perform GC analysis on a running Java program, locate program GC problems, and tune the program based on the analysis results to achieve optimal running of the Java program. |
|||
Use the Java Profiler to perform GC analysis on a running Java program, locate program GC problems, and tune the program based on the analysis results to achieve optimal running of the Java program. |
|||
Use the Java Profiler to perform thread dump (with CPU analysis) on a running Java program, locate program lock problems, and tune the program based on the analysis results to achieve optimal running of the Java program. |
|||
System Diagnosis |
Use the Kunpeng DevKit System Diagnosis tool to analyze the memory usage of executable programs, locate memory leaks based on the call stack information, and optimize memory usage accordingly. |