grack.com

Blog

nprof 0.8a released

The nprof 0.8a alpha release is now available. This fixes two bugs in the 0.8 release:

  • nprof wouldn’t close completely when clicking on the close box
  • ASP.NET profiling wouldn’t work if you didn’t have an Environment key for your W3SVC or IISADMIN services

NOTE: I recommend setting up ASP.NET to run under the SYSTEM account for profiling only. Once you’ve finished profiling, you should set it back to use the “machine” user. As before, these XML attributes are available in your machine.config file.

nprof 0.8 released

The nprof 0.8 alpha release is now available. Changes in this version are:

  • Basic ASP.NET profiling - note: ASP.NET must be running as SYSTEM!
  • Profile run message display
  • Detection and graceful handling of failed profiling runs
  • New icons for application and successful project run
  • Drag-and-drop of executables to the project tree (Josh)

To profile your ASP.NET application:

  1. Ensure that ASP.NET is configured to run as the SYSTEM account in machine.config
  2. Create a new project, select ASP.NET as the project type
  3. Select “Start project run” from the project menu
  4. Load your site’s page from a browser
  5. Ensure that the profiler has connected to aspnet_wp.exe in the messages list
  6. Perform your tasks to profile
  7. Click the “Stop Run” button in nprof

Screenshots:

Atech Pro-9 9-in-1 Card Reader in Linux

I just purchased the Atech Pro-9 9-in-1 flash card reader.  This thing is extremely cool- it has a number of different ports on the front to plug various storage items into.  A bit pricey (CDN$100), but cool nonetheless!

Getting it to work under linux is trivial.  If your kernel has CONFIG_SCSI_MULTI_LUN set, it will work out-of-the-box.  If not (RedHat kernels don’t set this flag by default), just add the following line to your modprobe.conf file for 2.6.x:

options scsi_mod max_luns=512

Or, if you are running 2.4.x, add the following line to modules.conf:

options scsi_mod max_scsi_luns=512

These options force the SCSI layer to scan up to 512 LUNs (sub-devices) on each SCSI device. It’s required because the 9-in-1 has four effective devices inside. Scanning the first device only will give you the first of the four devices only.

You should now see the following in dmesg when plugging the device in:

scsi0 : SCSI emulation for USB Mass Storage devices
  Vendor: AFT PRO   Model: -IX CF            Rev: 0.0>
  Type:   Direct-Access                      ANSI SCSI revision: 02
  Vendor: AFT PRO   Model: -IX SD            Rev: 0.0>
  Type:   Direct-Access                      ANSI SCSI revision: 02
  Vendor: AFT PRO   Model: -IX SM/XD         Rev: 0.0>
  Type:   Direct-Access                      ANSI SCSI revision: 02
  Vendor: AFT PRO   Model: -IX MS            Rev: 0.0>
  Type:   Direct-Access                      ANSI SCSI revision: 02

You can see the Compact Flash, Secure Digital, SmartMedia and Memory Stick interfaces appearing as separate devices. In theory, you can insert one piece of memory of each kind and use them simultaneously! I’ve only tried my SmartMedia card, personally, but it will likely work if you have multiple media types.

ASP.NET profiling is here

I’ve just checked in some code that will allow profiling of ASP.NET. Anyone interested in trying this out before the 0.8 release should send a note to the nprof-developers mailing list.

nprof 0.7 released - fixes packaging bug

I had made a mistake in packaging 0.6 and forgot to include NProf.Hook.dll. This has been corrected in the 0.7 package.

Sorry for the inconvenience.