original_string: public function saveProfile(Profile $profile)
      {
          // late collect
          foreach ($profile->getCollectors() as $collector) {
              if ($collector instanceof LateDataCollectorInterface) {
                  $collector->lateCollect();
              }
          }
  
          if (!($ret = $this->storage->write($profile)) && null !== $this->logger) {
              $this->logger->warning('Unable to store the profiler information.', ['configured_storage' => \get_class($this->storage)]);
          }
  
          return $ret;
      }
code: public function saveProfile(Profile $profile)
      {
          // late collect
          foreach ($profile->getCollectors() as $collector) {
              if ($collector instanceof LateDataCollectorInterface) {
                  $collector->lateCollect();
              }
          }
  
          if (!($ret = $this->storage->write($profile)) && null !== $this->logger) {
              $this->logger->warning('Unable to store the profiler information.', ['configured_storage' => \get_class($this->storage)]);
          }
  
          return $ret;
      }
code_tokens: public function saveProfile ( Profile $ profile ) { // late collect foreach ( $ profile -> getCollectors ( ) as $ collector ) { if ( $ collector instanceof LateDataCollectorInterface ) { $ collector -> lateCollect ( ) ; } } if ( ! ( $ ret = $ this -> storage -> write ( $ profile ) ) && null !== $ this -> logger ) { $ this -> logger -> warning ( 'Unable to store the profiler information.' , [ 'configured_storage' => \ get_class ( $ this -> storage ) ] ) ; } return $ ret ; }
docstring: Saves a Profile.
  
  @return bool
docstring_tokens: Saves a Profile .