Reply to comment

QFirebug with Database profiling

Hello folks

After integrate FirePHP in QCubed, I included support for Database Profiling, this option is so useful when you try to debug your queries ran in your ajax elements like panels or Datagrid Data bind functions.

This Profiling support I18N.

This is an example using profiling for a function to answer the event QAutoCompleteTextBoxEvent in a QAutoCompleteTextBox


public function txtProductName_Change($strFormId, $strControlId, $strParameter){

QApplication::$Database[1]->EnableProfiling();

$objProductArray = Inventory::QueryArray(
QQ::Like(QQN::Inventory()->Name,'%' . $strParameter .'%'),
QQ::Clause(QQ::OrderBy(QQN::Inventory()->Name),QQ::LimitInfo(20))
);

foreach($objProductArray as $objProduct){
echo QApplication::HtmlEntities($objProduct->Name)."\n";
}

QFirebug::OutputProfiling(QApplication::$Database[1]);
exit;
}

Check the attached picture for more reference, you know a picture talks more than million words.

Could you check the patch against QCubed 1.0.0 RC2

Enjoy

Regards

AttachmentSize
QFirebug.patch57.15 KB
QFirebug-IncludePath.patch875 bytes

Reply

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <b> <address> <blockquote> <br> <caption> <center> <code> <dd> <del> <div> <dl> <dt> <em> <font> <h2> <h3> <h4> <h5> <h6> <hr> <i> <img> <li> <ol> <p> <pre> <span> <strong> <sub> <sup> <table> <tbody> <td> <tfoot> <th> <thead> <tr> <u> <ul> <tr>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
1 + 2 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.