Index: profiler_api.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/profiler/profiler_api.inc,v
retrieving revision 1.2
diff -u -p -r1.2 profiler_api.inc
--- profiler_api.inc	22 Nov 2010 20:08:46 -0000	1.2
+++ profiler_api.inc	3 Jan 2011 14:59:10 -0000
@@ -248,6 +248,10 @@ function system_profiler_components() {
   return array(
     'theme' => array('callback' => 'profiler_install_theme'),
     'variables' => array('callback' => 'profiler_install_variables'),
+    'files' => array(
+      'callback' => 'profiler_install_files',
+      'weight' => 9,
+    ),
   );
 }
 
@@ -311,6 +315,25 @@ function profiler_install_variables($var
 }
 
 /**
+ * Component install callback for 'files'.
+ */
+function profiler_install_files($files, $config, &$identifiers) {
+  global $user;
+  foreach (array_filter($files) as $fid => $properties) {
+    $default = array(
+      'fid' => $fid,
+      'uid' => $user->uid,
+      'status' => FILE_STATUS_PERMANENT,
+      'timestampe' => time(),
+      'filename' => basename($properties['filepath']),
+      'filesize' => filesize($properties['filepath']),
+    );
+    $file = (object) array_merge($default, $properties);
+    drupal_write_record('files', $file);
+  }
+}
+
+/**
  * Component install callback for 'nodes'.
  */
 function profiler_install_nodes($nodes, $config, &$identifiers) {
