If you’re a developer of either Mac or iOS apps that use networking, there’s a new feature in the Developer Tools for Mac OS X 10.7 “Lion” (read my review of it at The Guardian) which will be useful to you. This brief article describes how it works.
In the Finder, take a look in the Utilities folder (Go menu, Utilities - or press Command Shift U). You should see a folder called “Network Link Conditioner”, which contains a preference pane for System Preferences.
I assume that this folder is installed by the (free) Developer Tools, because I didn’t find it on two other Lion-running Macs which didn’t have the Developer Tools installed. Double-click the prefpane file and authenticate to allow it to be installed. You’ll then see the pane in System Preferences.
You can choose from various different types of network conditions using the Profile popup menu.
You can also add profiles of your own by clicking Manage Profiles, either from scratch or via duplicating an existing profile.
Extremely handy for simulating less than optimal network conditions while testing an app. Just don’t forget to switch it off afterwards!
If you’re interested in more tips about OS X Lion, I’ve been tweeting extensively about it recently; you may want to follow me (@mattgemmell) on Twitter.

文章介绍Mac OS X 10.7 Lion开发者工具中的一项新特性:Network Link Conditioner,可用于模拟不同的网络条件,帮助开发者测试应用在网络不佳情况下的表现。
1758

被折叠的 条评论
为什么被折叠?



