Loosejar principle brief analysis, loosejar Principle
The loosejar tool dynamically analyzes the actual usage of each jar package in the application, for details, see loosejar to clear redundant jar packages in applications. The basic principle is to use instrumentation to create an Agent independent of the application ), it is used to monitor and assist programs running on JVM, and can even replace and modify some class definitions. With this function, developers can implement more flexible runtime VM monitoring and Java operations. For more information about instrumentation, see the new feature of Java SE 6: new functions of Instrumentation.
Private Map <ClassLoader, List <String> createClassLoaderMap () {// create a map. The key is classloader, value is a list Map <classloader, List <String> map = new HashMap () composed of the names of classes loaded by this ClassLoader (); // This method can obtain an array Class consisting of all classes loaded by classloader. <?> [] LoadedClasses = this. instrumentation. getAllLoadedClasses (); // format and print the length of the returned array Logger. log (String. format ("Found % d classes loaded in the JVM. ", new Object [] {Integer. valueOf (loadedClasses. length)}); // traverses all loaded classes for (Class <?> C: loadedClasses) {// obtain the classloader ClassLoader cl = c. getClassLoader (); // if the loader of the current class is not null, check whether the loader in the map already exists if (cl! = Null) {// if the classloader already exists in the map, add the name of the current class to the list corresponding to the classloader if (map. containsKey (cl) {(List) map. get (cl )). add (c. getName ();} // If the classloader does not exist in the map, a new list is created, put the name of the current class in the list // then add classloader and this list to the map else {List <String> classNames = new ArrayList (); classNames. add (c. getName (); map. put (cl, classNames) ;}}// format and print the number of classloader Logger in the map. log (String. format ("Found % d varous ClassLoader (s) inside the JVM. ", new Object [] {Integer. valueOf (map. size ()}); // returns mapreturn map ;}
Hello, what are the basic principles of Time Domain Analysis and frequency domain analysis? Which of the following is a brief introduction?
Time Domain: analyzes the changes of signals and various responses of the system over time, and studies the linear combination of signals and responses into simple signals.
Frequency Domain: analyzes the signal and system spectrum, that is, spectrum analysis, to achieve the corresponding practical application.
Briefly describe the basic principles of Gas Chromatography Analysis
In layman's terms, it is to use the gas carrying samples through the column, the process of adsorption analysis, the separation of various substances in the column, successively from the column into the detector, various substances detected by the detector are transformed into electrical signals, which are reflected on the Chromatographic Workstation.