Esempio n. 1
0
 public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'profileDurationInSec', 'type' => TType::I32));
     }
     if (is_array($vals)) {
         if (isset($vals['profileDurationInSec'])) {
             $this->profileDurationInSec = $vals['profileDurationInSec'];
         }
     }
 }
Esempio n. 2
0
 protected function process_getCpuProfile($seqid, $input, $output)
 {
     $args = new FacebookService_getCpuProfile_args();
     $args->read($input);
     $input->readMessageEnd();
     $result = new FacebookService_getCpuProfile_result();
     $result->success = $this->handler_->getCpuProfile($args->profileDurationInSec);
     $output->writeMessageBegin('getCpuProfile', TMessageType::REPLY, $seqid);
     $result->write($output);
     $output->getTransport()->flush();
 }