Profiling in Visual Studio is a powerful tool to help you identify performance issue based on a multitude of factors. In this post, just give a link to a useful sources for the basic profiling usage here.
References:
Pages
Profile
|
|
Hi, I'm Veerapat Sriarunrungrueang, an expert in technology field, especially full stack web development and performance testing.This is my coding diary. I usually develop and keep code snippets or some tricks, and update to this diary when I have time.
Nowadays, I've been giving counsel to many well-known firms in Thailand.
view more... |
Thursday, June 20, 2013
Thursday, June 13, 2013
An example experience to manage money and reach the target (TH)
This blog here, he share his experience to manage his money and reach his target without stock trading.
Friday, May 17, 2013
How to change password policy for group and domain in Windows Server 2012
To change password policy for Windows Server, we can change by the following steps:
- Open Control Panel
- Select System and Security
- Select Administrative Tools
- Double clicks at Group Policy Management
- Under Domains tab, open Group Policy Objects
- Then will see Default Domain Policy, right click and select Edit.
- It will show Group Policy Management Editor, open the following tab Computer Configuration -> Policies -> Windows Settings -> Security Settings -> Account Policies -> Password Policy.
- Open Control Panel
- Select System and Security
- Select Administrative Tools
- Double clicks at Group Policy Management
- Under Domains tab, open Group Policy Objects
- Then will see Default Domain Policy, right click and select Edit.
- It will show Group Policy Management Editor, open the following tab Computer Configuration -> Policies -> Windows Settings -> Security Settings -> Account Policies -> Password Policy.
Tuesday, March 26, 2013
Hadoop (HDInsight) on Windows 8
The following link will describe how to install Hadoop on Windows 8 clearly: http://marktab.net/datamining/2012/10/31/install-microsoft-hdinsight-server-hadoop-windows-8-professional/.
Friday, March 22, 2013
Windows Performance Analyzer Series
There are tools for Windows that can be used to visualize the trace files from ETW. It is Windows Performance Analyzer (WPA) which is a part of Windows Performance Toolkit.
These links below are the WPA series from channel9:
These links below are the WPA series from channel9:
- Capturing and analyzing performance traces
- Customizing WPA Trace Views
- Understanding pool usage using Windows Performance Analyzer
- Understanding heap data using Windows Performance Analyzer
- Understanding VirtualAlloc usage using Windows Performance Analyzer
It is really suit for who new to performance tracing to know how to analyze data using WPA.
Labels:
Performance Tracing,
Windows,
Xperf
Tuesday, March 19, 2013
Hadoop on Windows Azure
Labels:
Big Data,
Windows Azure
Monday, March 18, 2013
How to measure UI Rendering time and FPS for Windows Store Apps (C# / XAML)
To measure performance for Windows Store Apps, if you have no experience before, I would recommend you to look at this session first: http://channel9.msdn.com/Events/Build/2012/4-103. He will explain the concepts to capture Windows Store Apps performance tips.
In short, XAML Operations are broken down into frames, and follows these 3 main steps:
1. Parsing: parse XAML for any objects
2. Layout: put objects, and determine their layout
3. Rendering: draw visible objects
To capture UI rendering time easier, think about the followings things:
1. Scenario: understand and know which parts that want to trace. Try to break down into atomic parts, it will be more clear for design scenario steps.
1. Scenario: understand and know which parts that want to trace. Try to break down into atomic parts, it will be more clear for design scenario steps.
2. Steps of the trace scenario: it will notice us where our trace begins or ends in the trace file.
3. If in the same scenario contains sub parts such as loading items then scrolling down to the last items, try to make a self-marker (known by yourself) to separate sub tasks clearly.
4. When draw objects don't have to be re-draw, Frame will not be produced. Mouse interaction will produce frames only it trigger events on specific objects such as mouse over on objects then that object will have hover animation (re-draw frames).
4. When draw objects don't have to be re-draw, Frame will not be produced. Mouse interaction will produce frames only it trigger events on specific objects such as mouse over on objects then that object will have hover animation (re-draw frames).
Here is a command to capture UI Frame behavior:
@if %_echo%!==! echo off set UserOptions=-BufferSize 1024 -MinBuffers 32 -MaxBuffers 32 -Buffering set KernelOptions=-BufferSize 1024 -MinBuffers 64 -MaxBuffers 64 -Buffering xperf -start xaml_user -on "Microsoft-Windows-XAML::5"+perftrack %UserOptions% xperf -on base+cswitch %KernelOptions% xperf -m BeginTrace echo Event listeners started, run desired scenario then press any key pause xperf -m EndTrace echo stopping xaml_kernel... xperf -flush -f xaml_kernel.etl xperf -stop echo stopping xaml_user... xperf -flush xaml_user -f xaml_user.etl xperf -stop xaml_user echo merging to xaml_merged.etl... xperf -merge xaml_user.etl xaml_kernel.etl xaml_merged.etl
The command you see is a xperf command to capture XAML behavior which we can use it to monitor UI Frame Rendering time.
Now, let's see the real example. I will use Kona project in codeplex to demonstrate how to trace UI Rendering time and FPS. You can install and follow the example scenario I given.
Now, let's see the real example. I will use Kona project in codeplex to demonstrate how to trace UI Rendering time and FPS. You can install and follow the example scenario I given.
Example Scenario:
Capture UI rendering time of Bikes Category page, then scroll to the right and
left
Steps:
- Click at the header Bikes
category
- Waiting for all items are loaded into the page
- Scroll page to the right
using mouse wheel
- Scroll page to the left using mouse wheel
Open trace file
using WPA (Windows Performance Analyzer)
- On the left side select System Activity, then there are more items expanded.
- Select Generics events, an analysis tab will be shown.
- Select Provider Name Microsoft-Windows-XAML.
- Select Task Names that related to the scenario e.g. Frame, PointerDown, PointerUp, PointerLeave, PointerUpdate, PointerWheel.
- Right click, and select filter selection.
Analyze trace file
- We know that scenario start
from the first click at Bikes category header, and page will be navigated
after mouse is up then we do long wait for UI rendering. So, we know
immediately when it starts and stops.
- Zoom in, and we know that
page is rendered after XAML is parsed. So, the Frame interval followed
ParseXaml is the UI rendering frames for drawing objects on the screen
(Duration 1.1 seconds).
- The next sub part is after we do long wait and begin-end using mouse wheel. We can easily look at where PointerWheel start and stop that is the interval for scrolling items to right and left. To measure scrolling, it is difficult to measure in term of finding the longest gap between frames or longest interval because of UI thread will not produce frames when no re-draw objects (need to scroll mouse wheel accurately and continuously), which lead to calculate using FPS instead.
Calculate FPS UI
Thread
- In some scenarios, they don't create or load any objects just move or animate around the page. In order to measure it and detect UI glitch in overall using FPS (frames per second) is may be a good choice.
- From scrolling, zoom in to
that part. And open Frame tab to see how many frames in that time
range.
- There are 300 frames during 6.77 seconds, so the scrolling FPS is 44.3.
In conclusion, I still don't know the best way to trace UI glitch or at least find out the root problem if it is glitched yet (to know it is glitched because of what). However, based on the link I gave above, we can adjust the number of elements shown on the screen and remove overdraw elements or animations to improve application performance.
Last but not least, information in this post, I have tried by myself and no guarantee that this is right or wrong. Please read and consider by yourself.
Last but not least, information in this post, I have tried by myself and no guarantee that this is right or wrong. Please read and consider by yourself.
Labels:
C#,
Performance Tracing,
Windows,
Windows Store App,
Xperf
Wednesday, February 27, 2013
Delete project from TFS 2012
If you have ever used TFS, you can create a new project from Visual Studio directly. However, to delete a project, you need to use Team Foundation Server Console in a remote server which is not available in sometimes such as https://tfs.visualstudio.com/. You cannot access the server directly. So, the solution is we need to access remotely using command line tool from Visual Studio.
- Open Developer Command Prompt for VS2012
- The syntax command is TFSDeleteProject [/q] [/force] [/excludewss] /collection:URL TeamProjectName
- Example: TFSDeleteProject /collection:"https://xxx.visualstudio.com/DefaultCollection/" "Project X"
- Open Developer Command Prompt for VS2012
- The syntax command is TFSDeleteProject [/q] [/force] [/excludewss] /collection:URL TeamProjectName
- Example: TFSDeleteProject /collection:"https://xxx.visualstudio.com/DefaultCollection/" "Project X"
Friday, February 15, 2013
Change IE security setting to normal in Windows Server 2012
By default Internet Explorer (IE) in Windows Server is protected with some security to prevent unintentionally attacked during browse internet. Sometimes, we want it to be just a normal IE that trusts how user use it. In order to do that in Windows Server 2012 is described as follows:
Firstly, opens Server Manager page.
Next, on the top of Dashboard under welcoming message, clicks at "Configure this local server" as shown picture below.
Then, on properties tab, you will see information is divided into 2 sides. Look at the right side. You will see "IE Enhanced Security Configuration", it should be on if your IE is still protected. So, we gonna change it off. by click at it.
After you click it, a popup will be opened. Your job is changing to off as shown below.
Click OK and wait for a while during system setting is changing. When it finished, you will notice on properties tab "IE Enhanced Security Configuration" is changed to Off.
Labels:
Internet Technology,
Network,
Software Tools,
Windows
Thursday, February 14, 2013
Remove Remote Desktop Entries from Remote Desktop Connection
Steps to remove are described as follows:
- Click start or press Windows button, it will show application screen.
- Type "regedit", it will search and show only one program.
- Select that "regedit.exe".
- On the left hand side of the program, it is a navigation panel. Then you can easily navigate to "HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Default".
- On the right hand side of the program, they are entries of all connection Remote Desktop Connection remembered. In order to remove an entry, just select which connection you want to delete using right click at its name then select delete command. It will automatically remove (no need to save again).
Labels:
Network,
Software Tools,
Windows
Subscribe to:
Posts (Atom)











