码迷,mamicode.com
首页 > 其他好文 > 详细

模拟最烂的网速

时间:2015-03-17 17:16:52      阅读:144      评论:0      收藏:0      [点我收藏+]

标签:

How to install Apple’s Network Link Conditioner

Instructions current as of December 8, 2014 – OS X Yosemite 10.10

  1. Install Xcode if you don’t have it

  2. Open XCode and go to Xcode › Open Developer Tool › More Developer Tools…

    技术分享

  3. Download Hardware IO Tools for Xcode

技术分享

  1. Open the downloaded disk image and double-click the .prefpane to install it.

    技术分享

    技术分享

  2. There we go!

    技术分享

  3. Be sure to turn it on. You need to select a profile and enable the network conditioner with the big toggle that should be familiar from the Time Machine prefpane.

    技术分享

Caveat

This won‘t affect localhost, so be sure to use a staging server or co-worker‘s computer to simulate slow network connections to an API you’re running yourself. You may find https://ngrok.com/helpful in this regard.

 

模拟最烂的网速

标签:

原文地址:http://www.cnblogs.com/sunshine-anycall/p/4344578.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!