taskunderware - Tasks: task #3299, data asset size summary program

Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

task #3299: data asset size summary program

Submitted by:  Loic Dachary <loic>
Submitted on:  Mon May 29 10:15:36 2006  
Should Start On: Tue May 30 22:00:00 2006Should be Finished on: Tue May 30 22:00:00 2006
Category: NonePriority: 1 - Later
Status: In ProgressPrivacy: Public
Assigned to: cedric pinson <cpinson>Open/Closed: Open
Effort: 0.00

Mon May 29 10:15:36 2006, original submission:

For each file in the underware data repository (sounds, 3d data, animation data, curves), write a program that returns the size of the uncompressed, in-core memory used. The program takes a single argument, the filename. There may be a different program for each file type.

Write an XML file that maps file extension to the program able to compute the in-core memory usage. The extension is perl regular expression. It also associates a unique mime type to the file, based on the normalized names if they exists. A comment pointing to the file format definition is associated to each mime type. With a one line comment explaining the purpose of the file format.

<memory_usage><mime type="image/tiff" extension=".(tif|tiff)">tiff_compute</mime>....

Write a python script that computes the in-core memory usage of the files read from stdin, one per line, based on the XML file defined above. The ouput is one line per file with the following fields, separated by a field separator (tab by default):

file name, mime type, in-core memory size

The python script must take three options defining the new line character (input and output) and the field separator.

write a bash script that runs the python script on each argument provided on the command line and create a ploticus chart showing the file sizes by mime type (y is mime type, x is cumulated file size, largest file first with filename legend if enough space). The legend of this single chart must show the number of files for each mime type and the total in-memory space.

Create a directory tree with at least a single file for each mime type. In a subdirectory add three files of the same mime type. Write a bash script that runs the bash script described above on all the files of the directory (not the directory itself) and the subdirectory (not the files from the subdirectory) and compare the resulting image to a reference image. Fail if the images are different.

Loic Dachary <loic>
Project Administrator


No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by cpinson (Updated the item)
  • -unavailable- added by loic (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Error: not logged in



    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon Jun 5 14:14:54 2006cpinsonStatusNone=>In Progress
    Wed May 31 13:58:35 2006loicShould Start OnSun May 28 22:00:00 2006=>Tue May 30 22:00:00 2006
      Should be Finished onSun May 28 22:00:00 2006=>Tue May 30 22:00:00 2006
      Assigned toNone=>cpinson
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup