There are a lot of performance tools on the Linux platform, a dazzling, long-term groping and experience finding the best thing to use is the proven, simple gadgets. Brendan D. Gregg, a system performance expert, updated his famous talk (Linux performance Tools) and slides on Linux in the recent LinuxCon NA 2014 conference. Compared with Brendan last year's talk, this year added testing and optimization to the two parts. The three images below summari
Gprof How to workWhen you specify the-PG option when using GCC compilation, the compiler inserts the performance test code into the user code.
Gprof Simple Application ExampleMain.c
#include Lib.h#ifndef lib_h#define lib_hvoid func1 (int i), void func2 (int i); #endif/* Lib_h */Lib.c#include MakefileCFLAGS + =-PGOBJS = $ (patsubst%.c,%.o,$ (wildcard *.c)) Prog: $ (OBJS) gcc-pg-o [email protected] $^clean:-rm-f prog $ (obj SRun make compile code at the command line to generate the prog f
anti-theft chain: Some bad site sometimes in order not to increase the cost and want to expand their site content, often misappropriation of links to other sites, on the one hand damage the legitimate interests of the original website, on the other hand, the burden of the server increasedHide version information: In general, the vulnerability information of the software and the specific version is relevant if XXX or an ulterior motive to get the Apache version information, will make the server s
Doloto is a shorthand for "Download time Optimizer". The official page says it is especially useful for large, complex AJAX applications, because these applications contain a lot of JavaScript code. To put it simply, it works by stripping out the JavaScript code that was first used in the page, minimizing the amount of JavaScript that was loaded when the page was initialized, and then loading the other code in an asynchronous way.1. Doloto analyzes your application, it creates a local proxy to i
Real time includes CPU times and waiting, switching, and so on, so it is generally larger than the CPU. Comparisons can determine if the time-consuming operation is within the CPU execution segment. C. The% of the above four indicators indicates the percentage of the function in total time. Easy to see the time ratio of a function. D. calls+recurcalls/total represents the number of external calls + recursion count/total number of times. You can see if the number of calls matches your expectat
unified require.config configuration placement file, relative BaseURL pathBecause the multi-page project needs multiple inbound files, this time will appear the same require config in a project configuration multiple times, in order to avoid this problem, you can put the same config of multiple inbound files into a JS file, unified configuration,And will use the Mainconfigfile parameter of the Build.js to redefine the module.Examples can be consulted: Https://github.com/requirejs/example-multip
Android Lint Tools is a static code tool that comes with Android Studio, Android Lint is a custom check rule specifically for Android, so you can check out many of the Android-specific code flaws. It is recommended that during the development process, it is a good time to regularly check the code for problems and to run lint before each test function module.Android Studio itself integrates Android Lint, right-click on any of the one by one folders in
spent on each step and the CPU and block Io, so that we can optimize the query statement more specifically. As you can see, because this is a full-table scan, the most time-consuming here is on sending data. In addition to this scenario, the following situations can also be time consuming:converting HEAP to MyISAM (when the query results are too large, put the results on disk),create TMP table (creating a temporary table, such as group storage Intermediate results),Copying to TMP table on disk
, as a step by steps:@?/rdbms/admin/awrrpt.sqlAnother approach is to call Oralce's package directly, which is suitable for scenarios where you write your own initiative to get a script tool, such as the following:Set pagesize 0
set linesize 121
spool d:\awr_commit_frequently.html
Select output from table (dbms_workload _repository.awr_report_html (977587123,1,1920,1921));
Spool off
Note:
dbms_workload_repository. Awr_report_html (
l_dbid in n
AWR
Introduction to Performance optimization ToolsThis article mainly introduces oracle10g new awr tool, I often need to use AWR for database performance optimization and fault diagnosis in my work. AWR (Automatic workload Repository) is a new tool for collecting database statistics from Oracle 10g. It mainly includes
First, Sqladvisor IntroductionSqladvisor is an analytical SQL provided by the company's technical engineering Department's DBA team (Beijing) to develop and maintain a tool for index optimization recommendations. Based on the original ecological lexical analysis of MySQL, this paper combines the Where condition, aggregation condition and multi-table join relation in SQL to give the index
size of the screen space Reflection (SSR) and overwrites this setting in post-processing. Please refer to Show Flag VISUALIZESSR.
Command-Line OptionsSome features can be closed on the command line, such as Ue4.exe–nosoundSome of the more useful switches for analysis are:
-nosound disables sound and music systems.
-notexturestreaming
Turn off decal steaming (useful for isolating problems).
-NOVERIFYGC Otherwise, you expect performance fluctuations that you will encounter e
image is not held. In order to test this fix, start the instrument again (with CMD in Xcode) and repeat the steps.Do not forget to end the memory warning in the simulation!Note: Make sure you exit from Xcode and rebuild instead of just clicking on the red button on the instrument to make sure you're using the latest code. This analysis should look like this: memory is severely degraded by memory warnings at this time.But there is still some memory overall growth, but not as much as it used to b
Android performance optimization: asynchronous image loading tool with dual cache (LruCache + SoftReference ),
Previously, I used the LruCache algorithm to implement image caching in Guo Dashen's blog. here, I followed his ideas and wrote one myself. concurrentHashMap
The following idea is that the LruCache class provided by the system is used as a level-1 cache, with a size of 1/8 of the running memory.
generated view) Ash generation Run the following script, for example, to generate the Ash report: @?/rdbms/admin/ashrpt.sql
1. You are all the way to the carriage. is to get the ash report for the recent 15 minutes.
2. You are based on oldest ash sample available time and then enter, choosing the longest ash execution 3 that can be collected at the moment
. You can choose oldest Ash sample available and latest Ash sample Time between available, then enter the duration, for example 30 for 30 mi
. You are all the way to the return, is to get the latest 15 minutes of ash report. 2. You are based on oldest ash sample available time and then enter, choosing the longest ash execution 3 that can be collected at the moment. You can choose the time between oldest Ash sample available and latest Ash sample available, and then enter the length, for example 30 for 30 minutes, whichever time you want to take the ash reportThe ash report can also be obtained directly by hand, for example, select Ou
I took over an optimization project in the previous section, which requires that the company optimize the indexes of more than existing tables to improve the existing ones and eliminate invalid indexes. In view of the serious shortage of manpower (the resources of two and a half persons were counted at that time), the idea of Manually changing databases one by one was dispelled. The current program structure does not allow revolutionary practices, but
Like Yahoo's YSlow, Google's Open source Web site Optimization Tool page Speed is a firebug based Firefox plug-in, and, like YSlow, page Speed can help users improve the performance of their web site. After running it, you can see a list of suggestions to help your Web site load faster, and it will check your site against each item in the list and indicate if it's passed.
Page speed analyzes some Web serve
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.