Assignment 5a update.


R. Clayton (rclayton@monmouth.edu)
(no date)


I've updated the files for assignment 5a and modified the assignment slightly
to bring it in line with usual URI syntax: the colon between pagelog and the
filename has been changed to a slash. See the updated assignment page for
details.

I've added the -d64 option to keep track of storage use; this option applies to
both the regular main.cc and the testing/main.cc. The easiest way to use it is
to link your code with the testing main and run it 1000 times on the same web
page; after the initial allocations you should see no more memory size
increases:

  $ ./page-logger -d64 1000 testing/www.monmouth.edu
  storage size change = 16384
  storage size change = 16384

This turns out to be a reasonably sensitive test; I modified my code to not
deallocate the last word in every page list and this was what I got:

  $ ./page-logger -d64 1000 testing/www.monmouth.edu
  storage size change = 16384
  storage size change = 16384
  storage size change = 8192
  storage size change = 8192
  storage size change = 8192
  storage size change = 8192

My solution to the assignment is available in the assignment directory.
Remember that non-absolute files get created relative to the directory from
which the page-logger is executing. Make sure you have write permission in
that directory if you want to create non-absolute files.



This archive was generated by hypermail 2.0b3 on Mon Dec 15 2003 - 19:45:06 EST